From acf8830a28b9892fa5c2030bcf62dc328da77a76 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Fri, 4 Mar 2022 15:23:51 +0800 Subject: [PATCH] feat: edit tab name --- src/locales/lang/en.ts | 1 + src/locales/lang/zh.ts | 1 + src/views/dashboard/controls/Tab.vue | 64 +++++++++++++++++++++++++--- 3 files changed, 61 insertions(+), 5 deletions(-) diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 29feac0c..b3649192 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -95,6 +95,7 @@ const msg = { topChildren: "Top 5 of children", taskList: "Task List", sampledTraces: "Sampled Traces", + editTab: "Enable editing tab names", hourTip: "Select Hour", minuteTip: "Select Minute", secondTip: "Select Second", diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index 5764eeed..d60322cf 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -95,6 +95,7 @@ const msg = { showDepth: "展示深度选择器", taskList: "任务列表", sampledTraces: "采样的追踪", + editTab: "开启编辑Tab的名称", hourTip: "选择小时", minuteTip: "选择分钟", secondTip: "选择秒数", diff --git a/src/views/dashboard/controls/Tab.vue b/src/views/dashboard/controls/Tab.vue index f74314da..20c106dd 100644 --- a/src/views/dashboard/controls/Tab.vue +++ b/src/views/dashboard/controls/Tab.vue @@ -45,10 +45,38 @@ limitations under the License. -->
- + + +
+ {{ t("editTab") }} +
+
+ {{ t("delete") }} +
+
-
+