Browse Source

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

3.0.0/version-upgrade
xiangzihao 3 years ago committed by GitHub
parent
commit
0dfbbc8983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue
  2. 1
      dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js
  3. 1
      dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js

4
dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue

@ -30,7 +30,7 @@
v-model="instanceName" v-model="instanceName"
maxlength="60" maxlength="60"
size="small" size="small"
:placeholder="$t('Please enter group name')"> :placeholder="$t('Please enter alarm plugin instance name')">
</el-input> </el-input>
</template> </template>
</m-list-box-f> </m-list-box-f>
@ -108,7 +108,7 @@
_verification () { _verification () {
// group name // group name
if (!this.instanceName.replace(/\s*/g, '')) { 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 return false
} }
if (!this.pluginDefineId) { if (!this.pluginDefineId) {

1
dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js

@ -238,6 +238,7 @@ export default {
'Instance parameter exception': 'Instance parameter exception', 'Instance parameter exception': 'Instance parameter exception',
'Group Type': 'Group Type', 'Group Type': 'Group Type',
'Alarm plugin instance': 'Alarm plugin instance', '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', 'Select Alarm plugin instance': 'Please select an Alarm plugin instance',
Remarks: 'Remarks', Remarks: 'Remarks',
SMS: 'SMS', SMS: 'SMS',

1
dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js

@ -237,6 +237,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': '请输入告警实例名称',
'Select Alarm plugin instance': '请选择告警插件实例', 'Select Alarm plugin instance': '请选择告警插件实例',
Remarks: '备注', Remarks: '备注',
SMS: '短信', SMS: '短信',

Loading…
Cancel
Save