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

slim
Amy0104 2022-03-17 16:30:53 +08:00 committed by GitHub
parent 2b63de0297
commit b9e89b1922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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
}
>