You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by qi...@apache.org on 2022/04/29 07:27:02 UTC

[skywalking-booster-ui] branch main updated: fix the tag tips (#75)

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

qiuxiafan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-booster-ui.git


The following commit(s) were added to refs/heads/main by this push:
     new 4c1884d  fix the  tag tips (#75)
4c1884d is described below

commit 4c1884d552415960be90c8204df553f635a26c09
Author: Fine0830 <fi...@outlook.com>
AuthorDate: Fri Apr 29 15:26:58 2022 +0800

    fix the  tag tips (#75)
---
 src/locales/lang/en.ts                 |  4 ++++
 src/locales/lang/zh.ts                 |  4 ++++
 src/views/components/ConditionTags.vue | 12 +++++++++++-
 3 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts
index 7a5a350..9bed54d 100644
--- a/src/locales/lang/en.ts
+++ b/src/locales/lang/en.ts
@@ -242,6 +242,10 @@ const msg = {
   defaultDepth: "Default Depth",
   traceTagsTip: `Only tags defined in the core/default/searchableTracesTags are searchable.
   Check more details on the Configuration Vocabulary page`,
+  logTagsTip: `Only tags defined in the core/default/searchableLogsTags are searchable.
+  Check more details on the Configuration Vocabulary page`,
+  alarmTagsTip: `Only tags defined in the core/default/searchableAlarmTags are searchable.
+  Check more details on the Configuration Vocabulary page`,
   tagsLink: "Configuration Vocabulary page",
   addTag: "Please input a tag",
   log: "Log",
diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts
index d14876b..3e22234 100644
--- a/src/locales/lang/zh.ts
+++ b/src/locales/lang/zh.ts
@@ -243,6 +243,10 @@ const msg = {
   defaultDepth: "默认深度",
   traceTagsTip:
     "只有core/default/searchableTracesTags中定义的标记才可搜索。查看配置词汇表页面上的更多详细信息。",
+  logTagsTip:
+    "只有core/default/searchableTracesTags中定义的标记才可搜索。查看配置词汇表页面上的更多详细信息。",
+  alarmTagsTip:
+    "只有core/default/searchableTracesTags中定义的标记才可搜索。查看配置词汇表页面上的更多详细信息。",
   tagsLink: "配置词汇页",
   addTag: "请添加标签",
   logCategory: "日志类别",
diff --git a/src/views/components/ConditionTags.vue b/src/views/components/ConditionTags.vue
index d4b1421..19b5854 100644
--- a/src/views/components/ConditionTags.vue
+++ b/src/views/components/ConditionTags.vue
@@ -39,7 +39,17 @@ limitations under the License. -->
         >
           {{ t("tagsLink") }}
         </a>
-        <el-tooltip :content="t('traceTagsTip')">
+        <el-tooltip
+          :content="
+            t(
+              type === 'LOG'
+                ? 'logTagsTip'
+                : type === 'TRACE'
+                ? 'traceTagsTip'
+                : 'alarmTagsTip'
+            )
+          "
+        >
           <span>
             <Icon class="icon-help mr-5" iconName="help" size="middle" />
           </span>