fix: refs #8581 update notification message in toBook function
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
4ec7212d30
commit
6dc23f4a26
|
@ -62,8 +62,6 @@ async function checkToBook(id) {
|
||||||
|
|
||||||
async function toBook(id) {
|
async function toBook(id) {
|
||||||
let err = false;
|
let err = false;
|
||||||
let message = t('globals.dataSaved');
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await axios.post(`InvoiceIns/${id}/toBook`);
|
await axios.post(`InvoiceIns/${id}/toBook`);
|
||||||
store.data.isBooked = true;
|
store.data.isBooked = true;
|
||||||
|
@ -71,7 +69,7 @@ async function toBook(id) {
|
||||||
err = true;
|
err = true;
|
||||||
throw e;
|
throw e;
|
||||||
} finally {
|
} finally {
|
||||||
if (!err) notify({ type: 'positive', message });
|
if (!err) notify({ type: 'positive', message: t('globals.dataSaved') });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue