fix: refs #8581 update notification message in toBook function
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Jorge Penadés 2025-03-14 10:47:53 +01:00
parent 4ec7212d30
commit 6dc23f4a26
1 changed files with 1 additions and 3 deletions

View File

@ -62,8 +62,6 @@ async function checkToBook(id) {
async function toBook(id) {
let err = false;
let message = t('globals.dataSaved');
try {
await axios.post(`InvoiceIns/${id}/toBook`);
store.data.isBooked = true;
@ -71,7 +69,7 @@ async function toBook(id) {
err = true;
throw e;
} finally {
if (!err) notify({ type: 'positive', message });
if (!err) notify({ type: 'positive', message: t('globals.dataSaved') });
}
}
</script>