From a62aa571f6b331a452c9671f14cc5134aeb1d88a Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 3 Sep 2018 07:09:43 +0200 Subject: [PATCH] [enh] add a button to restart a job --- templates/job.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/job.html b/templates/job.html index 8142030..0e72c3b 100644 --- a/templates/job.html +++ b/templates/job.html @@ -8,7 +8,10 @@ Job '{{job.name}}' DELETED -
+
+ + +
@@ -39,6 +42,9 @@ }, cancelJob: function() { $.post("/api/job/" + this.job.id + "/stop") + }, + restartJob: function() { + $.post("/api/job/" + this.job.id + "/restart") } }, computed: {
State{{job.state}}