rundetail: disable stop button if already stopping

This commit is contained in:
Simone Gotti 2019-05-15 14:50:08 +02:00
parent b10a7f18e1
commit 0a47d7ecf7
1 changed files with 5 additions and 1 deletions

View File

@ -51,6 +51,7 @@
<button
class="button is-danger"
v-if="run.phase == 'running'"
:disabled="run.stopping"
@click="stopRun(run.id)"
>Stop</button>
</div>
@ -145,7 +146,10 @@ export default {
if (task.status == "running") return "running";
return "unknown";
},
stopRun: stopRun,
stopRun(runid) {
this.run.stopping = true;
stopRun(runid);
},
cancelRun: cancelRun,
restartRun(runid, fromStart) {
this.dropdownActive = false;