From 220c14e19c7f846c83dd1e1602f95bb0215996ba Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Fri, 6 Dec 2019 07:52:31 +0000 Subject: [PATCH] Course Page Improvements - Improve UX of Course Page - Properly disable inputs and buttons when course is already archived. Signed-off-by: Kyle Huckins Changes to be committed: modified: Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.html modified: Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.ts --- .../course-reserves/course-page.component.html | 53 +++++++++++++++------- .../local/course-reserves/course-page.component.ts | 4 +- 2 files changed, 39 insertions(+), 18 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.html b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.html index 1d4cf905ad..82a87c986c 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.html @@ -1,22 +1,29 @@ - + -
-
-
- - +
+ + +
@@ -33,6 +40,7 @@ @@ -43,7 +51,8 @@
Relationship
- @@ -51,8 +60,12 @@
- +
@@ -71,10 +84,12 @@
@@ -91,12 +106,14 @@
@@ -113,12 +130,14 @@
@@ -134,11 +153,13 @@
diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.ts index f5ed823e8f..944bd6480a 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.ts @@ -83,8 +83,8 @@ export class CoursePageComponent implements OnInit { // Edit Tab archiveCourse() { - this.course.disassociateMaterials(this.currentCourse).then(res => { - this.currentCourse.is_archived(true); + this.course.disassociateMaterials([this.currentCourse]).then(res => { + this.currentCourse.is_archived('t'); this.pcrud.update(this.currentCourse).subscribe(val => { console.debug('archived: ' + val); this.archiveSuccessString.current() -- 2.11.0