Skip to content

Commit

Permalink
fix: pass context specify dialog title
Browse files Browse the repository at this point in the history
  • Loading branch information
shadrak98 committed Sep 20, 2024
1 parent b6ee808 commit d72bdb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dashboard/src2/components/BuyPrepaidCreditsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {
},
title: {
type: String,
default: 'Add money to your account'
default: 'Add credits to your account'
}
},
emits: ['update:modelValue', 'success'],
Expand Down
9 changes: 7 additions & 2 deletions dashboard/src2/pages/BillingOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
<div>Unpaid Amount</div>
<Button
:disabled="Boolean($resources.unpaidAmountDue.data == 0)"
@click="showPrepaidCreditsDialog = true"
@click="
showPrepaidCreditsDialog = true;
title = 'Pay your unpaid amount';
"
theme="gray"
iconLeft="credit-card"
>
Expand Down Expand Up @@ -110,6 +113,7 @@
<ChangePaymentModeDialog2 v-model="showChangeModeDialog" />

<BuyPrepaidCreditsDialog
:title="title"
v-if="showPrepaidCreditsDialog"
v-model="showPrepaidCreditsDialog"
:minimumAmount="minimumAmount"
Expand Down Expand Up @@ -177,7 +181,8 @@ export default {
showChangeModeDialog: false,
showBillingDetailsDialog: false,
showAddCardDialog: false,
showUpcomingInvoiceDialog: false
showUpcomingInvoiceDialog: false,
title: 'Add credits to your account'
};
},
mounted() {
Expand Down

0 comments on commit d72bdb1

Please sign in to comment.