From f761ea053001f575cb683905d3fc7f766d641856 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 4 Dec 2018 16:22:23 +0100 Subject: [PATCH] only one run at a time --- static/js/cccc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/cccc.js b/static/js/cccc.js index ae81951..cb7fdf0 100644 --- a/static/js/cccc.js +++ b/static/js/cccc.js @@ -291,6 +291,8 @@ function updateStatus() { api('status', {}, function(response) { if (response.result) { $('#status').html(response.result.status) + $('button.run').attr({disabled: response.result.status == 'Active'}) + $('button.stop').attr({disabled: response.result.status != 'Active'}) if (response.result.duration && response.result.status == 'Active') { $('#duration').html(formatDuration(response.result.duration)) } else {