mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 20:56:25 +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 {
|
&#settings {
|
||||||
margin-left: @side-margin + 2;
|
margin-left: @side-margin + 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.disabled {
|
||||||
|
opacity: 0.3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#manage-separator {
|
#manage-separator {
|
||||||
|
|
|
@ -41,15 +41,16 @@ $(function() {
|
||||||
|
|
||||||
switch (sendingGroup.state) {
|
switch (sendingGroup.state) {
|
||||||
case HFProcess.ProcessGroupStates.STOPPED:
|
case HFProcess.ProcessGroupStates.STOPPED:
|
||||||
// if the process group is stopped, the stop button should be disabled
|
|
||||||
stopButton.removeAttr('href');
|
|
||||||
break;
|
break;
|
||||||
case HFProcess.ProcessGroupStates.STOPPING:
|
case HFProcess.ProcessGroupStates.STOPPING:
|
||||||
|
// if the process group is stopping, the stop button should be disabled
|
||||||
|
stopButton.removeAttr('href');
|
||||||
|
stopButton.addClass('disabled');
|
||||||
break;
|
break;
|
||||||
case HFProcess.ProcessGroupStates.STARTED:
|
case HFProcess.ProcessGroupStates.STARTED:
|
||||||
console.log("SETTING HREF");
|
|
||||||
// if the process group is going, the stop button should be active
|
// if the process group is going, the stop button should be active
|
||||||
stopButton.attr('href', '#');
|
stopButton.attr('href', '#');
|
||||||
|
stopButton.removeClass('disabled');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue