only one run at a time
This commit is contained in:
parent
46b59ff91a
commit
f761ea0530
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user