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 8a2c05f1ed [Improvement][UI] Description input box can not input blank 
(#14396)
8a2c05f1ed is described below

commit 8a2c05f1ed8d9af88b7979dcc8de86b3d741bdfd
Author: Aaron Wang <[email protected]>
AuthorDate: Wed Jun 28 09:15:31 2023 +0800

    [Improvement][UI] Description input box can not input blank (#14396)
---
 dolphinscheduler-ui/src/views/datasource/list/detail.tsx                | 1 -
 .../src/views/projects/list/components/project-modal.tsx                | 1 -
 .../src/views/resource/udf/function/components/function-modal.tsx       | 2 --
 .../views/security/alarm-group-manage/components/alarm-group-modal.tsx  | 1 -
 .../src/views/security/cluster-manage/components/cluster-modal.tsx      | 1 -
 .../views/security/environment-manage/components/environment-modal.tsx  | 1 -
 .../src/views/security/tenant-manage/components/tenant-modal.tsx        | 1 -
 7 files changed, 8 deletions(-)

diff --git a/dolphinscheduler-ui/src/views/datasource/list/detail.tsx 
b/dolphinscheduler-ui/src/views/datasource/list/detail.tsx
index ead89c6170..12d8b646c3 100644
--- a/dolphinscheduler-ui/src/views/datasource/list/detail.tsx
+++ b/dolphinscheduler-ui/src/views/datasource/list/detail.tsx
@@ -230,7 +230,6 @@ const DetailModal = defineComponent({
                 </NFormItem>
                 <NFormItem label={t('datasource.description')} path='note'>
                   <NInput
-                    allowInput={this.trim}
                     class='input-data-source-description'
                     v-model={[detailForm.note, 'value']}
                     type='textarea'
diff --git 
a/dolphinscheduler-ui/src/views/projects/list/components/project-modal.tsx 
b/dolphinscheduler-ui/src/views/projects/list/components/project-modal.tsx
index fbf3db9777..71312f7db2 100644
--- a/dolphinscheduler-ui/src/views/projects/list/components/project-modal.tsx
+++ b/dolphinscheduler-ui/src/views/projects/list/components/project-modal.tsx
@@ -137,7 +137,6 @@ const ProjectModal = defineComponent({
             path='description'
           >
             <NInput
-              allowInput={this.trim}
               v-model={[this.model.description, 'value']}
               type='textarea'
               placeholder={t('project.list.description_tips')}
diff --git 
a/dolphinscheduler-ui/src/views/resource/udf/function/components/function-modal.tsx
 
b/dolphinscheduler-ui/src/views/resource/udf/function/components/function-modal.tsx
index e3668936c7..5f19ec2b71 100644
--- 
a/dolphinscheduler-ui/src/views/resource/udf/function/components/function-modal.tsx
+++ 
b/dolphinscheduler-ui/src/views/resource/udf/function/components/function-modal.tsx
@@ -252,7 +252,6 @@ export default defineComponent({
                 style={{ marginBottom: '5px' }}
               >
                 <NInput
-                  allowInput={this.trim}
                   type='textarea'
                   v-model={[this.uploadForm.description, 'value']}
                   placeholder={t('resource.function.enter_description_tips')}
@@ -272,7 +271,6 @@ export default defineComponent({
             path='description'
           >
             <NInput
-              allowInput={this.trim}
               type='textarea'
               v-model={[this.functionForm.description, 'value']}
               placeholder={t('resource.function.enter_instructions_tips')}
diff --git 
a/dolphinscheduler-ui/src/views/security/alarm-group-manage/components/alarm-group-modal.tsx
 
b/dolphinscheduler-ui/src/views/security/alarm-group-manage/components/alarm-group-modal.tsx
index 900b6c9f6b..84afcadbcb 100644
--- 
a/dolphinscheduler-ui/src/views/security/alarm-group-manage/components/alarm-group-modal.tsx
+++ 
b/dolphinscheduler-ui/src/views/security/alarm-group-manage/components/alarm-group-modal.tsx
@@ -157,7 +157,6 @@ const AlarmGroupModal = defineComponent({
                   path='description'
                 >
                   <NInput
-                    allowInput={this.trim}
                     type='textarea'
                     placeholder={t(
                       'security.alarm_group.alarm_group_description_tips'
diff --git 
a/dolphinscheduler-ui/src/views/security/cluster-manage/components/cluster-modal.tsx
 
b/dolphinscheduler-ui/src/views/security/cluster-manage/components/cluster-modal.tsx
index 7b20f616c6..811e82047b 100644
--- 
a/dolphinscheduler-ui/src/views/security/cluster-manage/components/cluster-modal.tsx
+++ 
b/dolphinscheduler-ui/src/views/security/cluster-manage/components/cluster-modal.tsx
@@ -185,7 +185,6 @@ const ClusterModal = defineComponent({
                   path='description'
                 >
                   <NInput
-                    allowInput={this.trim}
                     class='input-cluster-desc'
                     
placeholder={t('security.cluster.cluster_description_tips')}
                     v-model={[this.model.description, 'value']}
diff --git 
a/dolphinscheduler-ui/src/views/security/environment-manage/components/environment-modal.tsx
 
b/dolphinscheduler-ui/src/views/security/environment-manage/components/environment-modal.tsx
index f5b7ef8f38..e0ad77c54a 100644
--- 
a/dolphinscheduler-ui/src/views/security/environment-manage/components/environment-modal.tsx
+++ 
b/dolphinscheduler-ui/src/views/security/environment-manage/components/environment-modal.tsx
@@ -172,7 +172,6 @@ const EnvironmentModal = defineComponent({
                   path='description'
                 >
                   <NInput
-                    allowInput={this.trim}
                     class='input-environment-desc'
                     placeholder={t(
                       'security.environment.environment_description_tips'
diff --git 
a/dolphinscheduler-ui/src/views/security/tenant-manage/components/tenant-modal.tsx
 
b/dolphinscheduler-ui/src/views/security/tenant-manage/components/tenant-modal.tsx
index ffdc73534f..3a67c929cf 100644
--- 
a/dolphinscheduler-ui/src/views/security/tenant-manage/components/tenant-modal.tsx
+++ 
b/dolphinscheduler-ui/src/views/security/tenant-manage/components/tenant-modal.tsx
@@ -152,7 +152,6 @@ const TenantModal = defineComponent({
                   path='description'
                 >
                   <NInput
-                    allowInput={this.trim}
                     class='input-description'
                     placeholder={t('security.tenant.description_tips')}
                     v-model={[this.model.description, 'value']}

Reply via email to