feat: console flat navigation, settings (#3581)

* instance routing

* instance naming

* org list

* rm isonsystem

* breadcrumb  type

* routing

* instance members

* fragment refresh org

* settings pages

* settings list, sidenav grouping, i18n

* org-settings, policy changes

* lint

* grid

* rename grid

* fallback to general

* cleanup

* general settings, remove cards

* sidenav for settings, label policy

* i18n

* header, nav backbuild

* general, project nav rehaul

* login text background adapt

* org nav anim

* org, instance settings, fix policy layout, roles

* i18n, active route for project

* lint
This commit is contained in:
Max Peintner
2022-05-09 15:01:36 +02:00
committed by GitHub
parent 94e420bb24
commit 06e3330d2e
188 changed files with 4046 additions and 3639 deletions
@@ -7,7 +7,7 @@ import { GrpcAuthService } from 'src/app/services/grpc-auth.service';
import { ManagementService } from 'src/app/services/mgmt.service';
import { StorageLocation, StorageService } from 'src/app/services/storage.service';
import { POLICIES } from '../policy-grid/policies';
import { SETTINGLINKS } from '../settings-grid/settinglinks';
export interface ShortcutItem {
id: string;
@@ -108,8 +108,8 @@ export class ShortcutsComponent implements OnDestroy {
const org: Org.AsObject | null = this.storageService.getItem('organization', StorageLocation.session);
if (org && org.id) {
this.org = org;
this.loadProjectShortcuts();
}
this.loadProjectShortcuts();
});
}
@@ -132,7 +132,7 @@ export class ShortcutsComponent implements OnDestroy {
});
const routesShortcuts = [PROFILE_SHORTCUT, CREATE_ORG, CREATE_PROJECT, CREATE_USER];
const policyShortcuts = POLICIES.map((p) => {
const settingsShortcuts = SETTINGLINKS.map((p) => {
const policy: ShortcutItem = {
id: p.i18nTitle,
type: ShortcutType.POLICY,
@@ -148,7 +148,7 @@ export class ShortcutsComponent implements OnDestroy {
return policy;
});
this.ALL_SHORTCUTS = [...routesShortcuts, ...policyShortcuts, ...mapped];
this.ALL_SHORTCUTS = [...routesShortcuts, ...settingsShortcuts, ...mapped];
this.loadShortcuts(this.org);
}
});