1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-17 12:10:39 +01:00

feat: execution notification for ROLLBACK and COMMIT

This commit is contained in:
Fabio Di Stasio 2022-02-13 10:16:01 +01:00
parent 4ed2f9a939
commit 76743e8f7c
2 changed files with 4 additions and 1 deletions

View File

@ -451,6 +451,7 @@ export default {
}; };
await Schema.commitTab(params); await Schema.commitTab(params);
this.addNotification({ status: 'success', message: this.$t('message.actionSuccessful', { action: 'COMMIT' }) });
} }
catch (err) { catch (err) {
this.addNotification({ status: 'error', message: err.stack }); this.addNotification({ status: 'error', message: err.stack });
@ -467,6 +468,7 @@ export default {
}; };
await Schema.rollbackTab(params); await Schema.rollbackTab(params);
this.addNotification({ status: 'success', message: this.$t('message.actionSuccessful', { action: 'ROLLBACK' }) });
} }
catch (err) { catch (err) {
this.addNotification({ status: 'error', message: err.stack }); this.addNotification({ status: 'error', message: err.stack });

View File

@ -258,7 +258,8 @@ module.exports = {
insertRow: 'Insert row | Insert rows', insertRow: 'Insert row | Insert rows',
commitMode: 'Commit mode', commitMode: 'Commit mode',
autoCommit: 'Auto commit', autoCommit: 'Auto commit',
manualCommit: 'Manual commit' manualCommit: 'Manual commit',
actionSuccessful: '{action} successful'
}, },
faker: { faker: {
address: 'Address', address: 'Address',