readonly REFRESH_INTERVAL = 5000;
private subs = new Subscription();
private rgwUrlPrefix = '/rgw';
+ private rgwUserUrlPrefix = '/rgw/user';
+ private rgwBuckerUrlPrefix = '/rgw/bucket';
permissions: Permissions;
featureToggleMap$: FeatureTogglesMap$;
- isRgwRoute = document.location.href.includes(this.rgwUrlPrefix);
+ isRgwRoute =
+ document.location.href.includes(this.rgwUserUrlPrefix) ||
+ document.location.href.includes(this.rgwBuckerUrlPrefix);
constructor(
private authStorageService: AuthStorageService,
this.subs.add(
this.router.events
.pipe(filter((event: Event) => event instanceof NavigationEnd))
- .subscribe(() => (this.isRgwRoute = this.router.url.startsWith(this.rgwUrlPrefix)))
+ .subscribe(
+ () =>
+ (this.isRgwRoute = [this.rgwBuckerUrlPrefix, this.rgwUserUrlPrefix].some((urlPrefix) =>
+ this.router.url.startsWith(urlPrefix)
+ ))
+ )
);
// Set daemon list polling only when in RGW route:
this.subs.add(