mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 00:56:48 +02:00
add opacity for disabled button
This commit is contained in:
parent
6e99f1200a
commit
410d852d36
2 changed files with 8 additions and 3 deletions
|
@ -226,6 +226,10 @@ header {
|
|||
&#settings {
|
||||
margin-left: @side-margin + 2;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
opacity: 0.3;
|
||||
}
|
||||
}
|
||||
|
||||
#manage-separator {
|
||||
|
|
|
@ -41,15 +41,16 @@ $(function() {
|
|||
|
||||
switch (sendingGroup.state) {
|
||||
case HFProcess.ProcessGroupStates.STOPPED:
|
||||
// if the process group is stopped, the stop button should be disabled
|
||||
stopButton.removeAttr('href');
|
||||
break;
|
||||
case HFProcess.ProcessGroupStates.STOPPING:
|
||||
// if the process group is stopping, the stop button should be disabled
|
||||
stopButton.removeAttr('href');
|
||||
stopButton.addClass('disabled');
|
||||
break;
|
||||
case HFProcess.ProcessGroupStates.STARTED:
|
||||
console.log("SETTING HREF");
|
||||
// if the process group is going, the stop button should be active
|
||||
stopButton.attr('href', '#');
|
||||
stopButton.removeClass('disabled');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue