rundetail: disable stop button if already stopping
This commit is contained in:
parent
b10a7f18e1
commit
0a47d7ecf7
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue