You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/09/06 14:35:03 UTC

[skywalking-rocketbot-ui] branch master updated: fix: debugger tool name (#537)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-rocketbot-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new 1091bda  fix: debugger tool name (#537)
1091bda is described below

commit 1091bdaf45b2823c31ee42da0928cbf6a0c494f9
Author: Fine0830 <fi...@outlook.com>
AuthorDate: Mon Sep 6 22:34:56 2021 +0800

    fix: debugger tool name (#537)
---
 src/assets/lang/en.ts                        | 2 +-
 src/store/modules/debug/log-lal.ts           | 2 +-
 src/views/components/debug/debug-constant.ts | 2 ++
 src/views/components/debug/tool-bar.vue      | 6 +++++-
 4 files changed, 9 insertions(+), 3 deletions(-)

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 @@ const m = {
   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 @@ const logAnaState: State = {
   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 @@ export const LogMetricsHeader = [
     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 @@ limitations under the License. -->
   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 @@ limitations under the License. -->
   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);
     }