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) {
|
||||
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>
|
||||
|
|
Loading…
Reference in New Issue