From 3c5a69adc9cecdc4b8f46097676005f2a60f06cf Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Fri, 10 Sep 2021 18:23:32 +0200 Subject: [PATCH] feat: new create scheduler tabs --- src/renderer/components/ModalNewFunction.vue | 170 ---------- src/renderer/components/ModalNewScheduler.vue | 109 ------ src/renderer/components/Workspace.vue | 28 ++ .../components/WorkspaceExploreBar.vue | 16 +- .../WorkspaceExploreBarMiscFolderContext.vue | 2 +- .../WorkspaceExploreBarSchemaContext.vue | 6 +- .../components/WorkspaceTabNewScheduler.vue | 321 ++++++++++++++++++ src/renderer/i18n/en-US.js | 3 +- 8 files changed, 358 insertions(+), 297 deletions(-) delete mode 100644 src/renderer/components/ModalNewFunction.vue delete mode 100644 src/renderer/components/ModalNewScheduler.vue create mode 100644 src/renderer/components/WorkspaceTabNewScheduler.vue diff --git a/src/renderer/components/ModalNewFunction.vue b/src/renderer/components/ModalNewFunction.vue deleted file mode 100644 index df4f52a7..00000000 --- a/src/renderer/components/ModalNewFunction.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - diff --git a/src/renderer/components/ModalNewScheduler.vue b/src/renderer/components/ModalNewScheduler.vue deleted file mode 100644 index 432b5a8f..00000000 --- a/src/renderer/components/ModalNewScheduler.vue +++ /dev/null @@ -1,109 +0,0 @@ - - - diff --git a/src/renderer/components/Workspace.vue b/src/renderer/components/Workspace.vue index 40bb49ea..93d79d23 100644 --- a/src/renderer/components/Workspace.vue +++ b/src/renderer/components/Workspace.vue @@ -187,6 +187,23 @@ + + + + {{ $t('message.newScheduler') }} + + + + + - @@ -142,9 +136,7 @@ import MiscContext from '@/components/WorkspaceExploreBarMiscContext'; import MiscFolderContext from '@/components/WorkspaceExploreBarMiscFolderContext'; import ModalNewSchema from '@/components/ModalNewSchema'; -import ModalNewFunction from '@/components/ModalNewFunction'; import ModalNewTriggerFunction from '@/components/ModalNewTriggerFunction'; -import ModalNewScheduler from '@/components/ModalNewScheduler'; export default { name: 'WorkspaceExploreBar', @@ -156,9 +148,7 @@ export default { MiscFolderContext, ModalNewSchema, - ModalNewFunction, - ModalNewTriggerFunction, - ModalNewScheduler + ModalNewTriggerFunction }, props: { connection: Object, diff --git a/src/renderer/components/WorkspaceExploreBarMiscFolderContext.vue b/src/renderer/components/WorkspaceExploreBarMiscFolderContext.vue index 12a7543a..128b82d3 100644 --- a/src/renderer/components/WorkspaceExploreBarMiscFolderContext.vue +++ b/src/renderer/components/WorkspaceExploreBarMiscFolderContext.vue @@ -34,7 +34,7 @@
{{ $t('message.createNewScheduler') }}
diff --git a/src/renderer/components/WorkspaceExploreBarSchemaContext.vue b/src/renderer/components/WorkspaceExploreBarSchemaContext.vue index 793fdb93..5b6092ed 100644 --- a/src/renderer/components/WorkspaceExploreBarSchemaContext.vue +++ b/src/renderer/components/WorkspaceExploreBarSchemaContext.vue @@ -52,7 +52,7 @@
{{ $tc('word.scheduler', 1) }}
@@ -150,8 +150,8 @@ export default { showCreateTriggerFunctionModal () { this.$emit('show-create-trigger-function-modal'); }, - showCreateSchedulerModal () { - this.$emit('show-create-scheduler-modal'); + openCreateSchedulerTab () { + this.$emit('open-create-scheduler-tab'); }, showDeleteModal () { this.isDeleteModal = true; diff --git a/src/renderer/components/WorkspaceTabNewScheduler.vue b/src/renderer/components/WorkspaceTabNewScheduler.vue new file mode 100644 index 00000000..dc111c27 --- /dev/null +++ b/src/renderer/components/WorkspaceTabNewScheduler.vue @@ -0,0 +1,321 @@ + + + diff --git a/src/renderer/i18n/en-US.js b/src/renderer/i18n/en-US.js index a81ef339..1d102183 100644 --- a/src/renderer/i18n/en-US.js +++ b/src/renderer/i18n/en-US.js @@ -236,7 +236,8 @@ module.exports = { newView: 'New view', newTrigger: 'New trigger', newRoutine: 'New routine', - newFunction: 'New function' + newFunction: 'New function', + newScheduler: 'New scheduler' }, faker: { address: 'Address',