LP#1626157 ACQ admin splash page and IU's
authorBill Erickson <berickxx@gmail.com>
Wed, 6 Jun 2018 18:35:49 +0000 (14:35 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 6 Jun 2018 18:35:51 +0000 (14:35 -0400)
Angular6 versions of all ACQ admin UI's, minus the funds page, which
requires some additional features.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/admin/basic-admin-page.component.ts
Open-ILS/src/eg2/src/app/staff/admin/routing.module.ts
Open-ILS/src/eg2/src/app/staff/nav.component.html

index e2a64f5..aa24cc7 100644 (file)
@@ -25,7 +25,12 @@ export class BasicAdminPageComponent implements OnInit {
     }
 
     ngOnInit() {
-        const schema = this.route.snapshot.paramMap.get('schema');
+        let schema = this.route.snapshot.paramMap.get('schema');
+        if (!schema) {
+            // Allow callers to pass the schema via static route data
+            const data = this.route.snapshot.data[0];
+            if (data) { schema = data.schema; }
+        }
         const table = schema + '.' + this.route.snapshot.paramMap.get('table');
 
         Object.keys(this.idl.classes).forEach(class_ => {
index 77b2d8a..a93f9ee 100644 (file)
@@ -9,6 +9,9 @@ const routes: Routes = [{
   }, {
     path: 'server',
     loadChildren: '@eg/staff/admin/server/admin-server.module#AdminServerModule'
+  }, {
+    path: 'acq',
+    loadChildren: '@eg/staff/admin/acq/admin-acq.module#AdminAcqModule'
   }]
 }];
 
index e3b60b3..e60b8eb 100644 (file)
             <span class="material-icons">account_balance</span>
             <span i18n>Server Administration</span>
           </a>
+          <a class="dropdown-item"
+              routerLink="/staff/admin/acq/splash">
+            <span class="material-icons">attach_money</span>
+            <span i18n>Acquisitions Administration</span>
+          </a>
         </div>
       </div>
     </div>