mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-21 12:28:46 +00:00
feat: rehauled console (#3525)
* new console * move npm ci to angular build * rel path for assets * local grpc copy * login policy, rm clear views, features rel path * lock Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
co-authored by
Livio Amstutz
parent
00f7dbe875
commit
08ae39ae19
@@ -0,0 +1,30 @@
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||
import { Router } from '@angular/router';
|
||||
import { KeyboardShortcut, ORGSHORTCUTS, SIDEWIDESHORTCUTS } from 'src/app/services/keyboard-shortcuts/keyboard-shortcuts';
|
||||
|
||||
@Component({
|
||||
selector: 'cnsl-keyboard-shortcuts',
|
||||
templateUrl: './keyboard-shortcuts.component.html',
|
||||
styleUrls: ['./keyboard-shortcuts.component.scss'],
|
||||
})
|
||||
export class KeyboardShortcutsComponent {
|
||||
public orgShortcuts: KeyboardShortcut[] = ORGSHORTCUTS;
|
||||
public shortcuts: KeyboardShortcut[] = SIDEWIDESHORTCUTS;
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<KeyboardShortcutsComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) public data: any,
|
||||
private router: Router,
|
||||
) {}
|
||||
|
||||
public closeDialog(): void {
|
||||
this.dialogRef.close(false);
|
||||
}
|
||||
|
||||
public get isNotOnSystem(): boolean {
|
||||
return !(
|
||||
['/system', '/views', '/failed-events'].includes(this.router.url) ||
|
||||
new RegExp('/system/policy/*').test(this.router.url)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user