Change entry buys plural translation logic
This commit is contained in:
parent
862dc20bcd
commit
c7b9f4ce5b
|
@ -227,18 +227,20 @@ const openRemoveDialog = async () => {
|
|||
component: VnConfirm,
|
||||
componentProps: {
|
||||
title: t('Confirm deletion'),
|
||||
message:
|
||||
rowsSelected.value.length > 1
|
||||
? t('Are you sure you want to delete this buys?')
|
||||
: t('Are you sure you want to delete this buy?'),
|
||||
message: t(
|
||||
`Are you sure you want to delete this buy${
|
||||
rowsSelected.value.length > 1 ? 's' : ''
|
||||
}?`
|
||||
),
|
||||
data: rowsSelected.value,
|
||||
},
|
||||
})
|
||||
.onOk(async () => {
|
||||
try {
|
||||
await deleteBuys();
|
||||
const notifyMessage =
|
||||
rowsSelected.value.length > 1 ? t('Buys deleted') : t('Buy deleted');
|
||||
const notifyMessage = t(
|
||||
`Buy${rowsSelected.value.length > 1 ? 's' : ''} deleted`
|
||||
);
|
||||
notify(notifyMessage, 'positive');
|
||||
} catch (err) {
|
||||
console.error('Error deleting buys');
|
||||
|
|
Loading…
Reference in New Issue