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:
parent
d25ebabc77
commit
543433f31e
2 changed files with 5 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue