diff --git a/src/renderer/components/BaseLoader.vue b/src/renderer/components/BaseLoader.vue new file mode 100644 index 00000000..5e5739b6 --- /dev/null +++ b/src/renderer/components/BaseLoader.vue @@ -0,0 +1,22 @@ + + + + diff --git a/src/renderer/components/WorkspacePropsTab.vue b/src/renderer/components/WorkspacePropsTab.vue index 23e7b953..b880c244 100644 --- a/src/renderer/components/WorkspacePropsTab.vue +++ b/src/renderer/components/WorkspacePropsTab.vue @@ -51,7 +51,8 @@ -
+
+
-
+
+ import { mapGetters, mapActions } from 'vuex'; +import BaseLoader from '@/components/BaseLoader'; import QueryEditor from '@/components/QueryEditor'; import WorkspacePropsFunctionOptionsModal from '@/components/WorkspacePropsFunctionOptionsModal'; import WorkspacePropsFunctionParamsModal from '@/components/WorkspacePropsFunctionParamsModal'; @@ -82,6 +84,7 @@ import Functions from '@/ipc-api/Functions'; export default { name: 'WorkspacePropsTabFunction', components: { + BaseLoader, QueryEditor, WorkspacePropsFunctionOptionsModal, WorkspacePropsFunctionParamsModal @@ -93,7 +96,7 @@ export default { data () { return { tabUid: 'prop', - isQuering: false, + isLoading: false, isSaving: false, isOptionsModal: false, isParamsModal: false, @@ -166,7 +169,9 @@ export default { }), async getFunctionData () { if (!this.function) return; - this.isQuering = true; + + this.isLoading = true; + this.localFunction = { sql: '' }; const params = { uid: this.connection.uid, @@ -189,7 +194,7 @@ export default { } this.resizeQueryEditor(); - this.isQuering = false; + this.isLoading = false; }, async saveChanges () { if (this.isSaving) return; diff --git a/src/renderer/components/WorkspacePropsTabRoutine.vue b/src/renderer/components/WorkspacePropsTabRoutine.vue index a5d0675f..a3e530b1 100644 --- a/src/renderer/components/WorkspacePropsTabRoutine.vue +++ b/src/renderer/components/WorkspacePropsTabRoutine.vue @@ -43,7 +43,8 @@
-
+
+ import { mapGetters, mapActions } from 'vuex'; import QueryEditor from '@/components/QueryEditor'; +import BaseLoader from '@/components/BaseLoader'; import WorkspacePropsRoutineOptionsModal from '@/components/WorkspacePropsRoutineOptionsModal'; import WorkspacePropsRoutineParamsModal from '@/components/WorkspacePropsRoutineParamsModal'; import Routines from '@/ipc-api/Routines'; @@ -83,6 +85,7 @@ export default { name: 'WorkspacePropsTabRoutine', components: { QueryEditor, + BaseLoader, WorkspacePropsRoutineOptionsModal, WorkspacePropsRoutineParamsModal }, @@ -93,7 +96,7 @@ export default { data () { return { tabUid: 'prop', - isQuering: false, + isLoading: false, isSaving: false, isOptionsModal: false, isParamsModal: false, @@ -166,7 +169,8 @@ export default { }), async getRoutineData () { if (!this.routine) return; - this.isQuering = true; + this.localRoutine = { sql: '' }; + this.isLoading = true; const params = { uid: this.connection.uid, @@ -189,7 +193,7 @@ export default { } this.resizeQueryEditor(); - this.isQuering = false; + this.isLoading = false; }, async saveChanges () { if (this.isSaving) return; diff --git a/src/renderer/components/WorkspacePropsTabScheduler.vue b/src/renderer/components/WorkspacePropsTabScheduler.vue index cfd72f0b..f0a0a7d6 100644 --- a/src/renderer/components/WorkspacePropsTabScheduler.vue +++ b/src/renderer/components/WorkspacePropsTabScheduler.vue @@ -114,7 +114,8 @@
-
+
+ import { mapGetters, mapActions } from 'vuex'; +import BaseLoader from '@/components/BaseLoader'; import QueryEditor from '@/components/QueryEditor'; import WorkspacePropsSchedulerTimingModal from '@/components/WorkspacePropsSchedulerTimingModal'; import Schedulers from '@/ipc-api/Schedulers'; @@ -144,6 +146,7 @@ import Schedulers from '@/ipc-api/Schedulers'; export default { name: 'WorkspacePropsTabScheduler', components: { + BaseLoader, QueryEditor, WorkspacePropsSchedulerTimingModal }, @@ -154,7 +157,7 @@ export default { data () { return { tabUid: 'prop', - isQuering: false, + isLoading: false, isSaving: false, isTimingModal: false, originalScheduler: null, @@ -226,7 +229,7 @@ export default { }), async getSchedulerData () { if (!this.scheduler) return; - this.isQuering = true; + this.isLoading = true; const params = { uid: this.connection.uid, @@ -249,7 +252,7 @@ export default { } this.resizeQueryEditor(); - this.isQuering = false; + this.isLoading = false; }, async saveChanges () { if (this.isSaving) return; diff --git a/src/renderer/components/WorkspacePropsTabTrigger.vue b/src/renderer/components/WorkspacePropsTabTrigger.vue index 56c01c77..1a6cebc2 100644 --- a/src/renderer/components/WorkspacePropsTabTrigger.vue +++ b/src/renderer/components/WorkspacePropsTabTrigger.vue @@ -95,7 +95,8 @@
-
+
+