Browse Source

Restrict date range change permission in Zen Mode

pull/4877/head
Thomas Kaul 4 weeks ago
parent
commit
6a61e6d93c
  1. 7
      apps/client/src/app/app.component.ts

7
apps/client/src/app/app.component.ts

@ -160,12 +160,11 @@ export class AppComponent implements OnDestroy, OnInit {
this.currentSubRoute = urlSegments[1]?.path; this.currentSubRoute = urlSegments[1]?.path;
if ( if (
(this.currentRoute === 'home' && !this.currentSubRoute) || ((this.currentRoute === 'home' && !this.currentSubRoute) ||
(this.currentRoute === 'home' && (this.currentRoute === 'home' &&
this.currentSubRoute === 'holdings') || this.currentSubRoute === 'holdings') ||
(this.currentRoute === 'portfolio' && !this.currentSubRoute) || (this.currentRoute === 'portfolio' && !this.currentSubRoute)) &&
(this.currentRoute === 'zen' && !this.currentSubRoute) || this.user?.settings?.viewMode !== 'ZEN'
(this.currentRoute === 'zen' && this.currentSubRoute === 'holdings')
) { ) {
this.hasPermissionToChangeDateRange = true; this.hasPermissionToChangeDateRange = true;
} else { } else {

Loading…
Cancel
Save