add opacity for disabled button

This commit is contained in:
Stephen Birarda 2015-12-21 14:51:37 -07:00
parent 6e99f1200a
commit 410d852d36
2 changed files with 8 additions and 3 deletions

View file

@ -226,6 +226,10 @@ header {
&#settings {
margin-left: @side-margin + 2;
}
&.disabled {
opacity: 0.3;
}
}
#manage-separator {

View file

@ -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;
}
}