mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
fix(8702): refreshing organization report page does not display the refreshed page (#8713)
This commit is contained in:
parent
0fb352d8ed
commit
c051412d41
@ -23,8 +23,8 @@ export class ReportsHomeComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.homepage$ = this.router.events.pipe(
|
||||
filter((event) => event instanceof NavigationEnd),
|
||||
map((event) => (event as NavigationEnd).urlAfterRedirects.endsWith("/reports")),
|
||||
startWith(true),
|
||||
map((event) => this.isReportsHomepageRouteUrl((event as NavigationEnd).urlAfterRedirects)),
|
||||
startWith(this.isReportsHomepageRouteUrl(this.router.url)),
|
||||
);
|
||||
|
||||
this.reports$ = this.route.params.pipe(
|
||||
@ -61,4 +61,8 @@ export class ReportsHomeComponent implements OnInit {
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
private isReportsHomepageRouteUrl(url: string): boolean {
|
||||
return url.endsWith("/reports");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user