From 68b313898576bfdc233a47677ed17aed69db7ade Mon Sep 17 00:00:00 2001 From: Lloyd Wheeler Date: Tue, 5 Dec 2017 11:23:29 -0800 Subject: [PATCH] StudentSupportCallForm: Add support for disabling priority button #1450 --- .../priorityButton/priorityButton.css | 6 +++++- .../priorityButton/priorityButton.html | 14 +++++++++++--- .../priorityButton/priorityButton.js | 3 ++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/app/instructionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.css b/app/instructionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.css index df7a567d3..f01fcade7 100644 --- a/app/instructionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.css +++ b/app/instructionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.css @@ -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); diff --git a/app/instructionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.html b/app/instructionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.html index f730c149f..42629e714 100644 --- a/app/instructionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.html +++ b/app/instructionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.html @@ -1,6 +1,14 @@ -
-
-
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/app/instructionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.js b/app/instructionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.js index f795a73ca..fa75bd025 100644 --- a/app/instructionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.js +++ b/app/instructionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.js @@ -15,7 +15,8 @@ sharedApp.directive("priorityButton", this.ipaButton = function () { replace: true, scope: { onClick: '&?', - iconClass: '