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