You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ke...@apache.org on 2022/01/04 01:13:33 UTC

[dolphinscheduler] branch dev updated: [Feature-5951][Improvement][UI] When creating an alarm instance, the alarm instance name input box prompts optimization (#7770)

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

kerwin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 0dfbbc8  [Feature-5951][Improvement][UI] When creating an alarm instance, the alarm instance name input box prompts optimization (#7770)
0dfbbc8 is described below

commit 0dfbbc89839b790ab5e0a3208496a4ab6fe0f359
Author: xiangzihao <46...@qq.com>
AuthorDate: Tue Jan 4 09:13:20 2022 +0800

    [Feature-5951][Improvement][UI] When creating an alarm instance, the alarm instance name input box prompts optimization (#7770)
---
 .../security/pages/warningInstance/_source/createWarningInstance.vue  | 4 ++--
 dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js                | 1 +
 dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js                | 1 +
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue
index 101b5ad..0d6a882 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue
@@ -30,7 +30,7 @@
                     v-model="instanceName"
                     maxlength="60"
                     size="small"
-                    :placeholder="$t('Please enter group name')">
+                    :placeholder="$t('Please enter alarm plugin instance name')">
             </el-input>
           </template>
         </m-list-box-f>
@@ -108,7 +108,7 @@
       _verification () {
         // group name
         if (!this.instanceName.replace(/\s*/g, '')) {
-          this.$message.warning(`${i18n.$t('Please enter group name')}`)
+          this.$message.warning(`${i18n.$t('Please enter alarm plugin instance name')}`)
           return false
         }
         if (!this.pluginDefineId) {
diff --git a/dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js b/dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js
index e8a14bd..1e700ab 100755
--- a/dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js
+++ b/dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js
@@ -238,6 +238,7 @@ export default {
   'Instance parameter exception': 'Instance parameter exception',
   'Group Type': 'Group Type',
   'Alarm plugin instance': 'Alarm plugin instance',
+  'Please enter alarm plugin instance name': 'Please enter alarm plugin instance name',
   'Select Alarm plugin instance': 'Please select an Alarm plugin instance',
   Remarks: 'Remarks',
   SMS: 'SMS',
diff --git a/dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js b/dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js
index 78742fc..17a726a 100644
--- a/dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js
+++ b/dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js
@@ -237,6 +237,7 @@ export default {
   'Instance parameter exception': '实例参数异常',
   'Group Type': '组类型',
   'Alarm plugin instance': '告警插件实例',
+  'Please enter alarm plugin instance name': '请输入告警实例名称',
   'Select Alarm plugin instance': '请选择告警插件实例',
   Remarks: '备注',
   SMS: '短信',