From: Galen Charlton Date: Tue, 2 Jun 2020 18:51:35 +0000 (-0400) Subject: LP#1879983: add Curbside Pickup to the Angular navbar X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b3ea97c82086c3056bdf4fee256e72778d389bd7;p=working%2FEvergreen.git 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 --- 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 5d7d1689bb..737691123a 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 f143727a33..cd432741ec 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.ts @@ -22,6 +22,7 @@ export class StaffNavComponent implements OnInit { // When active, show a link to the experimental Angular staff catalog showAngularCatalog: boolean; + curbsideEnabled: boolean; constructor( private router: Router, @@ -53,6 +54,9 @@ export class StaffNavComponent implements OnInit { 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'])); } }