Browse Source

[Fix][UI Next][V1.0.0-Alpha] Fix the stop button tips error and its uncorrect state when the record state is STOP. (#8960)

3.0.0/version-upgrade
Amy0104 3 years ago committed by GitHub
parent
commit
b9e89b1922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui-next/src/views/projects/workflow/instance/components/table-action.tsx

6
dolphinscheduler-ui-next/src/views/projects/workflow/instance/components/table-action.tsx

@ -191,8 +191,8 @@ export default defineComponent({
<NTooltip trigger={'hover'}>
{{
default: () =>
state === 'PAUSE'
? t('project.workflow.recovery_failed')
state === 'STOP'
? t('project.workflow.recovery_suspend')
: t('project.workflow.stop'),
trigger: () => (
<NButton
@ -202,7 +202,7 @@ export default defineComponent({
circle
onClick={this.handleStop}
disabled={
(state !== 'RUNNING_EXECUTION' && state !== 'PAUSE') ||
(state !== 'RUNNING_EXECUTION' && state !== 'STOP') ||
this.row?.disabled
}
>

Loading…
Cancel
Save