LP#1942220: remove the 'Acquisitions (Experimental)' menu
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 9 Dec 2021 19:04:33 +0000 (14:04 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 9 Dec 2021 19:04:33 +0000 (14:04 -0500)
Rather than treating Angular Acquisitions as a purely experimental
interface, treat it as the new default that has an option to
link back to the Dojo interfaces.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/nav.component.html
Open-ILS/src/eg2/src/app/staff/nav.component.ts

index a1ab910..a99b7b3 100644 (file)
       </div>
     </div>
 
-    <div class="navbar-nav" *ngIf="showAngularAcq">
-      <div ngbDropdown class="nav-item dropdown">
-        <a ngbDropdownToggle i18n class="nav-link dropdown-toggle">
-          Acquisitions (Experimental)
-        </a>
-        <div class="dropdown-menu" ngbDropdownMenu>
-          <a class="dropdown-item" 
-            routerLink="/staff/acq/po/create">
-            <span class="material-icons" aria-hidden="true">add_shopping_cart</span>
-            <span i18n>Create Purchase Order</span>
-          </a>
-        </div>
-      </div>
-    </div>
-
     <div class="navbar-nav">
       <div ngbDropdown class="nav-item dropdown">
         <a ngbDropdownToggle i18n class="nav-link dropdown-toggle">
index 8257875..cc7f4e0 100644 (file)
@@ -25,7 +25,6 @@ export class StaffNavComponent implements OnInit, OnDestroy {
 
     // When active, show a link to the experimental Angular staff catalog
     showAngularCatalog: boolean;
-    showAngularAcq: boolean;
     curbsideEnabled: boolean;
 
     @ViewChild('navOpChange', {static: false}) opChange: OpChangeComponent;
@@ -65,10 +64,6 @@ export class StaffNavComponent implements OnInit, OnDestroy {
             .then(settings => this.showAngularCatalog =
                 Boolean(settings['ui.staff.angular_catalog.enabled']));
 
-            this.org.settings('ui.staff.angular_acq_selection.enabled')
-            .then(settings => this.showAngularAcq =
-                Boolean(settings['ui.staff.angular_acq_selection.enabled']));
-
             this.org.settings('circ.curbside')
             .then(settings => this.curbsideEnabled =
                 Boolean(settings['circ.curbside']));