LP1972928: Show course user role dropdown choices without typing
authorJane Sandberg <js7389@princeton.edu>
Tue, 4 Oct 2022 01:22:48 +0000 (18:22 -0700)
committerJane Sandberg <js7389@princeton.edu>
Fri, 4 Nov 2022 03:05:47 +0000 (20:05 -0700)
To test:
1. Go to Admin > Local Admin > Course List
2. Choose a course
3. Go to the Course users tab
4. Activate the Role dropdown.
5. Note that no options appear.
6. Apply the patch
7. Repeat steps 1-5
8. Note that the role options appear when you activate the dropdown now

Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Jennifer Pringle <jennifer.pringle@bc.libraries.coop>
Signed-off-by: Stephanie Leary <stephanie.leary@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-users.component.html

index 39140f9..d7764ec 100644 (file)
@@ -45,7 +45,8 @@
               <label for="associate-user-role" class="input-group-text" i18n>Role</label>
             </div>
             <eg-combobox idlClass="acmr" [(ngModel)]="userRoleInput"
-            [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'">
+            [asyncSupportsEmptyTermClick]="true"
+            [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'">
             </eg-combobox>
           </div>
         </div>