From e217d5181b37ec6304151120b4a2aba9455c6a84 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Thu, 2 Sep 2021 18:08:23 +0200 Subject: [PATCH] feat: new create trigger tabs --- src/renderer/components/Workspace.vue | 30 +- .../components/WorkspaceExploreBar.vue | 12 +- .../WorkspaceExploreBarSchemaContext.vue | 6 +- .../components/WorkspaceTabNewTrigger.vue | 320 ++++++++++++++++++ src/renderer/i18n/en-US.js | 3 +- 5 files changed, 357 insertions(+), 14 deletions(-) create mode 100644 src/renderer/components/WorkspaceTabNewTrigger.vue diff --git a/src/renderer/components/Workspace.vue b/src/renderer/components/Workspace.vue index 1567884c..29de833f 100644 --- a/src/renderer/components/Workspace.vue +++ b/src/renderer/components/Workspace.vue @@ -119,6 +119,23 @@ + + + + {{ $t('message.newTrigger') }} + + + + + - {{ $tc('word.trigger', 1) }} @@ -138,8 +138,8 @@ export default { openCreateViewTab () { this.$emit('open-create-view-tab'); }, - showCreateTriggerModal () { - this.$emit('show-create-trigger-modal'); + openCreateTriggerTab () { + this.$emit('open-create-trigger-tab'); }, showCreateRoutineModal () { this.$emit('show-create-routine-modal'); diff --git a/src/renderer/components/WorkspaceTabNewTrigger.vue b/src/renderer/components/WorkspaceTabNewTrigger.vue new file mode 100644 index 00000000..536dbc3f --- /dev/null +++ b/src/renderer/components/WorkspaceTabNewTrigger.vue @@ -0,0 +1,320 @@ + + + diff --git a/src/renderer/i18n/en-US.js b/src/renderer/i18n/en-US.js index 7b4226b8..e16b597e 100644 --- a/src/renderer/i18n/en-US.js +++ b/src/renderer/i18n/en-US.js @@ -233,7 +233,8 @@ module.exports = { runQuery: 'Run query', thereAreNoTableFields: 'There are no table fields', newTable: 'New table', - newView: 'New view' + newView: 'New view', + newTrigger: 'New trigger' }, faker: { address: 'Address',