Skip to content

Commit

Permalink
StudentSupportCallForm: Add support for disabling priority button #1450
Browse files Browse the repository at this point in the history
  • Loading branch information
ltwheeler committed Jan 16, 2018
1 parent 5ae9b4e commit 68b3138
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
padding-left: 5px;
}

.priority-button:hover {
.priority-button--disabled {
cursor: default;
}

.priority-button:hover:not(.priority-button--disabled) {
background-color: #e6ebf1;
background-image: linear-gradient(-180deg, #f0f3f6 0%, #e6ebf1 90%);
border-color: rgba(27,31,35,0.35);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<div class="priority-button" ng-click="onClick()">
<div class="priority-button__icon-container icon-container">
<div ng-class="iconClass">
<div class="priority-button" ng-class="{'priority-button--disabled': isDisabled }">
<div ng-show="!(isDisabled)" ng-click="onClick()">
<div class="priority-button__icon-container icon-container">
<div ng-class="iconClass">
</div>
</div>
</div>
<div ng-show="(isDisabled)">
<div class="priority-button__icon-container icon-container">
<div ng-class="iconClass">
</div>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ sharedApp.directive("priorityButton", this.ipaButton = function () {
replace: true,
scope: {
onClick: '&?',
iconClass: '<?'
iconClass: '<?',
isDisabled: '<?'
},
link: function(scope, element, attrs) {
// Intentionally empty
Expand Down

0 comments on commit 68b3138

Please sign in to comment.