From 76743e8f7c02b824cb21540bfbcbe66ba43de8fa Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Sun, 13 Feb 2022 10:16:01 +0100 Subject: [PATCH] feat: execution notification for ROLLBACK and COMMIT --- src/renderer/components/WorkspaceTabQuery.vue | 2 ++ src/renderer/i18n/en-US.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/WorkspaceTabQuery.vue b/src/renderer/components/WorkspaceTabQuery.vue index 8ab66c53..5e64aa33 100644 --- a/src/renderer/components/WorkspaceTabQuery.vue +++ b/src/renderer/components/WorkspaceTabQuery.vue @@ -451,6 +451,7 @@ export default { }; await Schema.commitTab(params); + this.addNotification({ status: 'success', message: this.$t('message.actionSuccessful', { action: 'COMMIT' }) }); } catch (err) { this.addNotification({ status: 'error', message: err.stack }); @@ -467,6 +468,7 @@ export default { }; await Schema.rollbackTab(params); + this.addNotification({ status: 'success', message: this.$t('message.actionSuccessful', { action: 'ROLLBACK' }) }); } catch (err) { this.addNotification({ status: 'error', message: err.stack }); diff --git a/src/renderer/i18n/en-US.js b/src/renderer/i18n/en-US.js index f63721c1..b812c506 100644 --- a/src/renderer/i18n/en-US.js +++ b/src/renderer/i18n/en-US.js @@ -258,7 +258,8 @@ module.exports = { insertRow: 'Insert row | Insert rows', commitMode: 'Commit mode', autoCommit: 'Auto commit', - manualCommit: 'Manual commit' + manualCommit: 'Manual commit', + actionSuccessful: '{action} successful' }, faker: { address: 'Address',