You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by wa...@apache.org on 2022/08/02 09:38:12 UTC
[dolphinscheduler] branch dev updated: fix bug where confirm disable error (#11251)
This is an automated email from the ASF dual-hosted git repository.
wanggenhua 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 78e9122573 fix bug where confirm disable error (#11251)
78e9122573 is described below
commit 78e912257330c8ec488df7d42e025f47e15331c9
Author: Devosend <de...@gmail.com>
AuthorDate: Tue Aug 2 17:38:05 2022 +0800
fix bug where confirm disable error (#11251)
---
.../resource/task-group/option/components/form-modal.tsx | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/dolphinscheduler-ui/src/views/resource/task-group/option/components/form-modal.tsx b/dolphinscheduler-ui/src/views/resource/task-group/option/components/form-modal.tsx
index fcd20e41e5..2e53259090 100644
--- a/dolphinscheduler-ui/src/views/resource/task-group/option/components/form-modal.tsx
+++ b/dolphinscheduler-ui/src/views/resource/task-group/option/components/form-modal.tsx
@@ -15,7 +15,15 @@
* limitations under the License.
*/
-import { defineComponent, PropType, toRefs, onMounted, ref, Ref, getCurrentInstance } from 'vue'
+import {
+ defineComponent,
+ PropType,
+ toRefs,
+ onMounted,
+ ref,
+ Ref,
+ getCurrentInstance
+} from 'vue'
import { NForm, NFormItem, NInput, NSelect, NInputNumber } from 'naive-ui'
import { useForm } from '../use-form'
import Modal from '@/components/modal'
@@ -106,14 +114,14 @@ const FormModal = defineComponent({
confirmDisabled={
!this.formData.name ||
!this.formData.groupSize ||
- !this.formData.description
+ !this.formData.projectCode
}
confirmLoading={this.saving}
>
<NForm rules={this.rules} ref='formRef'>
<NFormItem label={t('resource.task_group_option.name')} path='name'>
<NInput
- allowInput={this.trim}
+ allowInput={this.trim}
v-model={[this.formData.name, 'value']}
placeholder={t('resource.task_group_option.please_enter_name')}
/>
@@ -150,7 +158,7 @@ const FormModal = defineComponent({
path='description'
>
<NInput
- allowInput={this.trim}
+ allowInput={this.trim}
v-model={[this.formData.description, 'value']}
type='textarea'
placeholder={t('resource.task_group_option.please_enter_desc')}