mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
disable click of stop button if stopped
This commit is contained in:
parent
39310b33fe
commit
6e99f1200a
1 changed files with 6 additions and 5 deletions
|
@ -41,14 +41,15 @@ $(function() {
|
|||
|
||||
switch (sendingGroup.state) {
|
||||
case HFProcess.ProcessGroupStates.STOPPED:
|
||||
// if the process group is stopped, the stop button should be disabled
|
||||
stopButton.attr('disabled', true);
|
||||
// if the process group is stopped, the stop button should be disabled
|
||||
stopButton.removeAttr('href');
|
||||
break;
|
||||
case HFProcess.Process.STOPPING:
|
||||
case HFProcess.ProcessGroupStates.STOPPING:
|
||||
break;
|
||||
case HFProcess.Process.STARTED:
|
||||
case HFProcess.ProcessGroupStates.STARTED:
|
||||
console.log("SETTING HREF");
|
||||
// if the process group is going, the stop button should be active
|
||||
stopButton.attr('disabled', false);
|
||||
stopButton.attr('href', '#');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue