diff --git a/src/frontend/app/header/header-right.component.ts b/src/frontend/app/header/header-right.component.ts index a4eef0a90c9634b1f53213d71528112e5fb8ea75..a78cce8752da1f7b2fc721437362a4f1629aa505 100644 --- a/src/frontend/app/header/header-right.component.ts +++ b/src/frontend/app/header/header-right.component.ts @@ -52,12 +52,14 @@ export class HeaderRightComponent implements OnInit { const component = shortcut.route.split('__'); if (component.length === 2) { - this.dialog.open(RegisteredMailImportComponent, { - disableClose: true, - width: '99vw', - maxWidth: '99vw', - panelClass: 'maarch-full-height-modal' - }); + if (component[0] === 'RegisteredMailImportComponent') { + this.dialog.open(RegisteredMailImportComponent, { + disableClose: true, + width: '99vw', + maxWidth: '99vw', + panelClass: 'maarch-full-height-modal' + }); + } } else { this.router.navigate([shortcut.route]); } diff --git a/src/frontend/service/privileges.service.ts b/src/frontend/service/privileges.service.ts index 8d7988a9041a1fddc05e5e3317aa3399c0f68864..b91ec4416fdf6d1bb4bfa90698748358c593d01e 100755 --- a/src/frontend/service/privileges.service.ts +++ b/src/frontend/service/privileges.service.ts @@ -535,7 +535,7 @@ export class PrivilegeService { 'id': 'registered_mail_mass_import', 'label': 'lang.importRegisteredMails', 'comment': 'lang.importRegisteredMails', - 'route': 'administration/contact/list/import/contact-import.component__modal', + 'route': 'RegisteredMailImportComponent__modal', 'style': 'fas fa-dolly-flatbed', 'unit': 'registeredMails', 'angular': true,