mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-18 03:15:11 +00:00
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:
@@ -9,11 +9,11 @@ import {
|
||||
ACTIONS,
|
||||
DOMAINS,
|
||||
HOME,
|
||||
INSTANCE,
|
||||
KeyboardShortcut,
|
||||
ME,
|
||||
ORG,
|
||||
PROJECTS,
|
||||
SYSTEM,
|
||||
USERGRANTS,
|
||||
USERS,
|
||||
} from './keyboard-shortcuts';
|
||||
@@ -59,8 +59,8 @@ export class KeyboardShortcutsService implements OnDestroy {
|
||||
}
|
||||
}
|
||||
if (firstKey.code === 'KeyG' && secondKey.code === 'KeyS') {
|
||||
if (this.hasPermission(SYSTEM)) {
|
||||
this.router.navigate(SYSTEM.link);
|
||||
if (this.hasPermission(INSTANCE)) {
|
||||
this.router.navigate(INSTANCE.link);
|
||||
}
|
||||
}
|
||||
if (firstKey.code === 'KeyG' && secondKey.code === 'KeyO') {
|
||||
|
||||
@@ -11,9 +11,9 @@ export const HOME: KeyboardShortcut = {
|
||||
keyboardKeys: ['g', 'h'],
|
||||
};
|
||||
|
||||
export const SYSTEM: KeyboardShortcut = {
|
||||
export const INSTANCE: KeyboardShortcut = {
|
||||
i18nKey: 'KEYBOARDSHORTCUTS.SHORTCUTS.SYSTEM',
|
||||
link: ['/system'],
|
||||
link: ['/instance'],
|
||||
keyboardKeys: ['g', 's'],
|
||||
permissions: ['iam.read'],
|
||||
};
|
||||
@@ -66,7 +66,7 @@ export const DOMAINS: KeyboardShortcut = {
|
||||
permissions: ['org.read'],
|
||||
};
|
||||
|
||||
export const SIDEWIDESHORTCUTS = [ME, HOME, SYSTEM, ORG, PROJECTS, USERS, USERGRANTS, ACTIONS, DOMAINS];
|
||||
export const SIDEWIDESHORTCUTS = [ME, HOME, INSTANCE, ORG, PROJECTS, USERS, USERGRANTS, ACTIONS, DOMAINS];
|
||||
|
||||
export const ORGSWITCHER: KeyboardShortcut = {
|
||||
i18nKey: 'KEYBOARDSHORTCUTS.SHORTCUTS.ORGSWITCHER',
|
||||
|
||||
Reference in New Issue
Block a user