fix: debugger tool name (#537)
diff --git a/src/assets/lang/en.ts b/src/assets/lang/en.ts
index 6f34e8e..a51708f 100644
--- a/src/assets/lang/en.ts
+++ b/src/assets/lang/en.ts
@@ -247,7 +247,7 @@
analysis: 'Analysis',
waitLoading: 'Loading',
dslEmpty: 'Script input of LAL should not be empty',
- logContentEmpty: 'The content of the log should not not be empty.',
+ logContentEmpty: 'The content of the log should not be empty.',
debug: 'Debug',
};
diff --git a/src/store/modules/debug/log-lal.ts b/src/store/modules/debug/log-lal.ts
index 4082170..4edf2a9 100644
--- a/src/store/modules/debug/log-lal.ts
+++ b/src/store/modules/debug/log-lal.ts
@@ -45,7 +45,7 @@
selectedEndpoint: { key: '', label: '' },
dsl: '',
logTestResp: { log: { content: '' }, metrics: [] },
- tabType: 'LAL',
+ tabType: '',
};
// mutations
diff --git a/src/views/components/debug/debug-constant.ts b/src/views/components/debug/debug-constant.ts
index 2af4458..a2539b1 100644
--- a/src/views/components/debug/debug-constant.ts
+++ b/src/views/components/debug/debug-constant.ts
@@ -60,3 +60,5 @@
value: 'tags',
},
];
+
+export const DebuggerTools = ['Log Analysis Language Debugger'];
diff --git a/src/views/components/debug/tool-bar.vue b/src/views/components/debug/tool-bar.vue
index 0417f17..5762484 100644
--- a/src/views/components/debug/tool-bar.vue
+++ b/src/views/components/debug/tool-bar.vue
@@ -34,6 +34,7 @@
import { Mutation, State } from 'vuex-class';
import Component from 'vue-class-component';
import { State as rocketLogAnaState } from '@/store/modules/debug/log-lal';
+ import { DebuggerTools } from './debug-constant';
@Component({
components: {},
@@ -41,7 +42,10 @@
export default class DebugToolBar extends Vue {
@Mutation('SET_TAB_TYPE') private SET_TAB_TYPE: any;
@State('rocketDebugLAL') private rocketLogLAL!: rocketLogAnaState;
- private tabConstant = ['LAL'];
+ private tabConstant = DebuggerTools;
+ private created() {
+ this.SET_TAB_TYPE(this.tabConstant[0]);
+ }
private handleTab(i: string) {
this.SET_TAB_TYPE(i);
}