[Fix][UI Next][V1.0.0-Alpha] Fix the stop button tips error and its uncorrect state when the record state is STOP. (#8960)
parent
2b63de0297
commit
b9e89b1922
|
|
@ -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…
Reference in New Issue