only one run at a time

This commit is contained in:
j 2018-12-04 16:22:23 +01:00
parent 46b59ff91a
commit f761ea0530

View File

@ -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 {