chore: linter fix

This commit is contained in:
Shariq Ansari 2024-11-14 21:50:00 +05:30
parent a305984216
commit fb0a19bd03
7 changed files with 17 additions and 11 deletions

View file

@ -11,7 +11,10 @@
<div class="flex flex-col gap-1.5">
<div class="font-medium">{{ 'Active card' }}</div>
<div class="overflow-hidden text-gray-700 text-ellipsis">
<div v-if="team.data.payment_method" class="inline-flex items-center gap-2">
<div
v-if="team.data.payment_method"
class="inline-flex items-center gap-2"
>
<component :is="cardBrandIcon(team.data.payment_method.brand)" />
<div class="text-gray-700">
<span>{{ team.data.payment_method.name_on_card }}</span>
@ -49,7 +52,9 @@
<div class="shrink-0">
<Dropdown :options="paymentModeOptions">
<template #default="{ open }">
<Button :label="team.data.payment_mode ? paymentMode.label : 'Set mode'">
<Button
:label="team.data.payment_mode ? paymentMode.label : 'Set mode'"
>
<template #suffix>
<FeatherIcon
:name="open ? 'chevron-up' : 'chevron-down'"

View file

@ -117,7 +117,7 @@ function upgradePlan() {
createDialog({
title: 'Change plan',
component: markRaw(
h(ConfirmMessage, { price: props.plan.price, currency: props.plan.currency }),
h(ConfirmMessage, { price: props.plan.price, currency: props.plan.currency })
),
actions: [
{

View file

@ -158,7 +158,7 @@ const rows = computed(() => {
? h(FeatherIcon, {
name: 'check-circle',
class: 'h-4 w-4 text-green-600',
})
})
: null,
alert:
card.is_default && card.stripe_payment_method
@ -171,8 +171,8 @@ const rows = computed(() => {
h(FeatherIcon, {
name: 'alert-circle',
class: 'h-4 w-4 text-red-600',
}),
)
})
)
: null,
creation: useTimeAgo(card.creation).value,
actions: {

View file

@ -129,8 +129,8 @@ const rows = computed(() => {
invoice.status === 'Paid'
? 'green'
: invoice.status == 'Unpaid'
? 'yellow'
: 'gray',
? 'yellow'
: 'gray',
},
due_date: due_date,
total: formatCurrency(invoice.total),

View file

@ -184,7 +184,7 @@ const rows = computed(() => {
})
.filter(
(row) =>
row.name !== 'Trial' || (row.name === 'Trial' && row.name === currentPlan.value),
row.name !== 'Trial' || (row.name === 'Trial' && row.name === currentPlan.value)
)
})
@ -211,7 +211,7 @@ function changePlan(_plan, price) {
createDialog({
title: 'Change plan',
component: markRaw(
h(ConfirmMessage, { price, currency: currency.value === 'INR' ? '₹' : '$' }),
h(ConfirmMessage, { price, currency: currency.value === 'INR' ? '₹' : '$' })
),
actions: [
{

View file

@ -68,7 +68,7 @@ export const ConfirmMessage = {
'div',
{ class: 'text-gray-600 inline-flex gap-1 mt-3' },
h(FeatherIcon, { name: 'info', class: 'h-4' }),
'Your site will be in maintenance mode for some time.',
'Your site will be in maintenance mode for some time.'
),
])
},

View file

@ -82,6 +82,7 @@ def api(method, data=None):
else:
frappe.throw(_("Failed while calling API {0}", method))
@frappe.whitelist()
def is_fc_site():
return frappe.conf.get("fc_communication_secret")