Dannila commented on code in PR #9840:
URL: https://github.com/apache/dolphinscheduler/pull/9840#discussion_r861440145
##########
dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-flink.ts:
##########
@@ -59,21 +75,32 @@ export function useFlink(model: { [field: string]: any }):
IJsonItem[] {
},
validate: {
trigger: ['input', 'blur'],
- required: model.programType !== 'PYTHON',
+ required: model.programType !== 'PYTHON' && model.programType !==
'SQL',
validator(validate: any, value: string) {
- if (model.programType !== 'PYTHON' && !value) {
+ if (model.programType !== 'PYTHON' && !value && model.programType
!== 'SQL') {
return new Error(t('project.node.main_class_tips'))
}
}
}
},
useMainJar(model),
Review Comment:
When the user clicks the programType as sql on the front end, the mainClass
will be removed, and the edit box will be displayed for the user to fill in the
sql
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]