Browse Source

[Perf][UI Next][V1.0.0-Beta] Optimize judgment logic. (#9561)

3.0.0/version-upgrade
songjianet 2 years ago committed by GitHub
parent
commit
e534ca1298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      dolphinscheduler-ui-next/src/views/projects/task/components/node/detail-modal.tsx

8
dolphinscheduler-ui-next/src/views/projects/task/components/node/detail-modal.tsx

@ -118,9 +118,7 @@ const NodeDetailModal = defineComponent({
{
text: t('project.node.instructions'),
show:
taskType && !TASK_TYPES_MAP[taskType]?.helperLinkDisable
? true
: false,
!!(taskType && !TASK_TYPES_MAP[taskType]?.helperLinkDisable),
action: () => {
const helpUrl =
'https://dolphinscheduler.apache.org/' +
@ -134,7 +132,7 @@ const NodeDetailModal = defineComponent({
},
{
text: t('project.node.view_history'),
show: props.taskInstance ? true : false,
show: !!props.taskInstance,
action: () => {
router.push({
name: 'task-instance',
@ -145,7 +143,7 @@ const NodeDetailModal = defineComponent({
},
{
text: t('project.node.view_log'),
show: props.taskInstance ? true : false,
show: !!props.taskInstance,
action: () => {
handleViewLog()
},

Loading…
Cancel
Save