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 @@
-
-
-
-
- {{ $t('message.createNewFunction') }}
-
-
-
-
-
-
-
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 @@
-
-
-
-
- {{ $t('message.createNewScheduler') }}
-
-
-
-
-
-
-
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',