Chore: Eslint v9
Chore: Angular Zoneless Chore: Removed Angular-Hotkeys dependency Fix: Localization works properly now Chore: Using Material 3 theme now Chore: Removed toaster service to use snackbar directly Fix: F2 Date working on all components now
This commit is contained in:
1 parent
c07c79ffda
commit
336a8f59c5
94 files changed
+846
-1030
No files matched your search
@@ -2,7 +2,7 @@ import { inject } from '@angular/core';
|
||||
import { CanActivateFn } from '@angular/router';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
import { ToasterService } from '../core/toaster.service';
|
||||
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||
|
||||
import { AuthService } from './auth.service';
|
||||
|
||||
@@ -18,7 +18,7 @@ export const authGuard: CanActivateFn = (route, state) => {
|
||||
return false;
|
||||
}
|
||||
if (permission !== undefined && user.perms.indexOf(permission) === -1) {
|
||||
inject(ToasterService).show('Danger', 'You do not have the permission to access this area.');
|
||||
inject(MatSnackBar).open('You do not have the permission to access this area.', 'Danger');
|
||||
return false;
|
||||
}
|
||||
// logged in so return true
|
||||
|
||||
Reference in new issue
Block a user