Skip to content

Commit

Permalink
[Fix][UI][V1.0.0-Beta] Remove the sql comment in the procedure task a…
Browse files Browse the repository at this point in the history
…nd add the instructions link to the procedure task. (apache#9619)
  • Loading branch information
Amy0104 authored and 冯剑 Jian committed Apr 23, 2022
1 parent 6dfa81c commit ce730e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@ const NodeDetailModal = defineComponent({
text: t('project.node.instructions'),
show: !!(taskType && !TASK_TYPES_MAP[taskType]?.helperLinkDisable),
action: () => {
let linkedTaskType = taskType?.toLowerCase().replace('_', '-')
if (taskType === 'PROCEDURE') linkedTaskType = 'stored-procedure'
const helpUrl =
'https://dolphinscheduler.apache.org/' +
locale.value.toLowerCase().replace('_', '-') +
'/docs/latest/user_doc/guide/task/' +
taskType?.toLowerCase().replace('_', '-') +
linkedTaskType +
'.html'
window.open(helpUrl)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export function useProcedure(model: { [field: string]: any }): IJsonItem[] {
name: t('project.node.procedure_method'),
props: {
language: 'sql',
placeholder: t('project.node.procedure_method_tips'),
defaultValue: model.method
? model.method
: t('project.node.procedure_method_snippet')
placeholder: t('project.node.procedure_method_tips')
},
validate: {
trigger: ['input', 'trigger'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export const TASK_TYPES_MAP = {
alias: 'SUB_PROCESS'
},
PROCEDURE: {
alias: 'PROCEDURE',
helperLinkDisable: true
alias: 'PROCEDURE'
},
SQL: {
alias: 'SQL'
Expand Down

0 comments on commit ce730e1

Please sign in to comment.