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