You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/03/23 04:27:08 UTC
[dolphinscheduler] branch dev updated: [Fix][UI Next][V1.0.0-Alpha]Fix udf function upload internationalization bug (#9110)
This is an automated email from the ASF dual-hosted git repository.
songjian 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 0c5c9ca [Fix][UI Next][V1.0.0-Alpha]Fix udf function upload internationalization bug (#9110)
0c5c9ca is described below
commit 0c5c9cabc3eac65449e04d5ec33536919a7b271b
Author: Devosend <de...@gmail.com>
AuthorDate: Wed Mar 23 12:27:00 2022 +0800
[Fix][UI Next][V1.0.0-Alpha]Fix udf function upload internationalization bug (#9110)
---
.../src/locales/modules/en_US.ts | 4 ++-
.../src/locales/modules/zh_CN.ts | 4 ++-
.../udf/function/components/function-modal.tsx | 31 +++++++++++-----------
3 files changed, 22 insertions(+), 17 deletions(-)
diff --git a/dolphinscheduler-ui-next/src/locales/modules/en_US.ts b/dolphinscheduler-ui-next/src/locales/modules/en_US.ts
index 746ef54..9e2d9c2 100644
--- a/dolphinscheduler-ui-next/src/locales/modules/en_US.ts
+++ b/dolphinscheduler-ui-next/src/locales/modules/en_US.ts
@@ -285,7 +285,9 @@ const resource = {
'Please select UDF resources directory',
enter_instructions_tips: 'Please enter a instructions',
enter_name_tips: 'Please enter name',
- enter_description_tips: 'Please enter description'
+ enter_description_tips: 'Please enter description',
+ upload: 'Upload',
+ upload_udf_resources: 'Upload UDF Resources'
},
task_group_option: {
manage: 'Task group manage',
diff --git a/dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts b/dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
index d47cc47..158a4ec 100644
--- a/dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
+++ b/dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
@@ -283,7 +283,9 @@ const resource = {
enter_select_udf_resources_directory_tips: '请选择UDF资源目录',
enter_instructions_tips: '请输入使用说明',
enter_name_tips: '请输入名称',
- enter_description_tips: '请输入描述'
+ enter_description_tips: '请输入描述',
+ upload: '上传',
+ upload_udf_resources: '上传UDF资源'
},
task_group_option: {
manage: '任务组管理',
diff --git a/dolphinscheduler-ui-next/src/views/resource/udf/function/components/function-modal.tsx b/dolphinscheduler-ui-next/src/views/resource/udf/function/components/function-modal.tsx
index 1f01421..0b19e27 100644
--- a/dolphinscheduler-ui-next/src/views/resource/udf/function/components/function-modal.tsx
+++ b/dolphinscheduler-ui-next/src/views/resource/udf/function/components/function-modal.tsx
@@ -215,20 +215,19 @@ export default defineComponent({
v-model={[this.uploadForm.name, 'value']}
placeholder={t('resource.function.enter_name_tips')}
/>
- <NButton>
- <NUpload
- v-model={[this.uploadForm.file, 'value']}
- customRequest={this.customRequest}
- showFileList={false}
- >
- <NButton text>
- 上传
- <NIcon>
- <CloudUploadOutlined />
- </NIcon>
- </NButton>
- </NUpload>
- </NButton>
+ <NUpload
+ v-model={[this.uploadForm.file, 'value']}
+ customRequest={this.customRequest}
+ showFileList={false}
+ style={{ width: 'auto' }}
+ >
+ <NButton>
+ {t('resource.function.upload')}
+ <NIcon>
+ <CloudUploadOutlined />
+ </NIcon>
+ </NButton>
+ </NUpload>
</NInputGroup>
</NFormItem>
<NFormItem
@@ -245,7 +244,9 @@ export default defineComponent({
/>
</NFormItem>
<NFormItem label=' '>
- <NButton onClick={this.handleUpload}>上传UDF资源</NButton>
+ <NButton onClick={this.handleUpload}>
+ {t('resource.function.upload_udf_resources')}
+ </NButton>
</NFormItem>
</NForm>
)}