Skip to content

Commit

Permalink
feat(dashboard/invoices): added description to invoice user table
Browse files Browse the repository at this point in the history
feat(dashboard/invoices): added string to invoice user table if there are no users with outstanding debts
  • Loading branch information
CodeNamedRobin committed Aug 17, 2024
1 parent c6d5e04 commit e524dd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/dashboard/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,9 @@
"Name": "Name",
"Balance": "Balance",
"CreateInvoice": "Create Invoice",
"isCreditInvoice": "Is credit invoice"
"isCreditInvoice": "Is credit invoice",
"InvoiceUsersDescription": "Invoice user with oustanding debts.",
"NoInvoiceableUsers": "Currently, there are no users with outstanding debts."
},
"pdf": {
"Table": "Table",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<template>
<CardComponent :header="$t('c_invoiceInfo.InvoiceUsers')" class="w-5">
<p class="my-0 font-italic text-sm ">{{ $t('c_invoiceInfo.InvoiceUsersDescription') }}</p>
<p v-if="invoiceableUsersWithBalance.length === 0">{{ $t('c_invoiceInfo.NoInvoiceableUsers') }}</p>
<DataTable
v-else
:value="invoiceableUsersWithBalance"
>
<Column field="user.id" :header="$t('c_invoiceInfo.id')"/>
Expand Down

0 comments on commit e524dd1

Please sign in to comment.