Apply suggestions from code review of branch live-scan-details

Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
This commit is contained in:
Julian Stirling 2026-07-04 21:52:31 +00:00
parent d25ebabc77
commit 543433f31e
2 changed files with 5 additions and 3 deletions

View file

@ -163,6 +163,8 @@ export default {
return this.isDisabled || this.isBroken || (this.taskRunning && !this.canTerminate);
},
buttonLabel() {
// If the action is running (and can terminate) then show the cancel label, otherwise
// show the submit label.
return this.taskRunning && this.canTerminate ? this.cancelLabel : this.submitLabel;
},
buttonClasses() {