From: Kyle Huckins Date: Fri, 6 Dec 2019 07:52:31 +0000 (+0000) Subject: Course Page Improvements X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5a4c769c6e4ac286f3b5590ff3e0763406a9fe75;p=working%2FEvergreen.git 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 --- 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()