Skip to content
Snippets Groups Projects
Verified Commit f0863ea4 authored by Sebastian Bergandy's avatar Sebastian Bergandy :keyboard:
Browse files

OZG-7590 remove unnecessary promise

parent e797e7da
No related branches found
No related tags found
1 merge request!59OZG-7590-Administration-neue-Rolle
...@@ -33,13 +33,7 @@ import { Component, inject, OnInit } from '@angular/core'; ...@@ -33,13 +33,7 @@ import { Component, inject, OnInit } from '@angular/core';
import { Router, RouterLink, RouterOutlet } from '@angular/router'; import { Router, RouterLink, RouterOutlet } from '@angular/router';
import { AuthenticationService } from '@authentication'; import { AuthenticationService } from '@authentication';
import { hasLink } from '@ngxp/rest'; import { hasLink } from '@ngxp/rest';
import { import { AdminLogoIconComponent, NavbarComponent, NavItemComponent, OrgaUnitIconComponent, UsersIconComponent, } from '@ods/system';
AdminLogoIconComponent,
NavbarComponent,
NavItemComponent,
OrgaUnitIconComponent,
UsersIconComponent,
} from '@ods/system';
import { filter, Observable, Subscription } from 'rxjs'; import { filter, Observable, Subscription } from 'rxjs';
import { UserProfileButtonContainerComponent } from '../common/user-profile-button-container/user-profile.button-container.component'; import { UserProfileButtonContainerComponent } from '../common/user-profile-button-container/user-profile.button-container.component';
import { UnavailablePageComponent } from '../pages/unavailable/unavailable-page/unavailable-page.component'; import { UnavailablePageComponent } from '../pages/unavailable/unavailable-page/unavailable-page.component';
...@@ -106,7 +100,7 @@ export class AppComponent implements OnInit { ...@@ -106,7 +100,7 @@ export class AppComponent implements OnInit {
.subscribe((apiRootResource: ApiRootResource) => this._evaluateNavigationByApiRoot(apiRootResource)); .subscribe((apiRootResource: ApiRootResource) => this._evaluateNavigationByApiRoot(apiRootResource));
} }
private async refreshForGuardEvaluation(): Promise<void> { private refreshForGuardEvaluation(): void {
this.router.navigate([window.location.pathname]); this.router.navigate([window.location.pathname]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment