From 429de5fcb0e97702931532f34a4891bb51d8b818 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 2 Jun 2020 14:51:35 -0400 Subject: [PATCH] LP#1879983: add Curbside Pickup to the Angular navbar For both the Angular and AngularJS staff interfaces, the Curbside Pickup option in the Circulation menu is displayed only if circ.curbside has been enabled for the workstation library. Sponsored-by: PaILS Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/nav.component.html | 5 +++++ Open-ILS/src/eg2/src/app/staff/nav.component.ts | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.html b/Open-ILS/src/eg2/src/app/staff/nav.component.html index 265368a62a..c9c909a662 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.html +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html @@ -137,6 +137,11 @@ signal_wifi_off Offline Circulation + + + directions_bus + Curbside Pickup + diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.ts b/Open-ILS/src/eg2/src/app/staff/nav.component.ts index 4f0283a51c..db934f1b39 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.ts @@ -25,6 +25,7 @@ export class StaffNavComponent implements OnInit, OnDestroy { // When active, show a link to the experimental Angular staff catalog showAngularCatalog: boolean; + curbsideEnabled: boolean; @ViewChild('navOpChange') opChange: OpChangeComponent; permFailedSub: Subscription; @@ -60,6 +61,9 @@ export class StaffNavComponent implements OnInit, OnDestroy { this.org.settings('ui.staff.angular_catalog.enabled') .then(settings => this.showAngularCatalog = Boolean(settings['ui.staff.angular_catalog.enabled'])); + this.org.settings('circ.curbside') + .then(settings => this.curbsideEnabled = + Boolean(settings['circ.curbside'])); } // Wire up our op-change component as the general purpose -- 2.11.0