Browse Source
Bugfix/restrict date range change permission in Zen mode (#4877)
* Restrict date range change permission in Zen Mode
* Update changelog
pull/4878/head
Thomas Kaul
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
11 additions and
6 deletions
-
CHANGELOG.md
-
apps/client/src/app/app.component.ts
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. |
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
|
|
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
|
|
|
|
- Restricted the date range change permission in the _Zen Mode_ |
|
|
|
|
|
|
|
|
## 2.169.0 - 2025-06-08 |
|
|
## 2.169.0 - 2025-06-08 |
|
|
|
|
|
|
|
|
### Changed |
|
|
### Changed |
|
|
|
@ -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 { |
|
|