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>
}
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_ => {
}, {
path: 'server',
loadChildren: '@eg/staff/admin/server/admin-server.module#AdminServerModule'
+ }, {
+ path: 'acq',
+ loadChildren: '@eg/staff/admin/acq/admin-acq.module#AdminAcqModule'
}]
}];
<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>