Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Fix header and about page (#44)

Thomas19ada83d0b29
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a2f640654b..7f43723de6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,13 @@ 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/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## Unreleased
+
+### Fixed
+
+- Fixed an issue in the header with outdated data
+- Fixed an issue on the about page with outdated data
+
## 0.91.0 - 25.04.2021
### Added
diff --git a/apps/client/src/app/components/header/header.component.html b/apps/client/src/app/components/header/header.component.html
index 48050ccd83..130dc97549 100644
--- a/apps/client/src/app/components/header/header.component.html
+++ b/apps/client/src/app/components/header/header.component.html
@@ -150,7 +150,7 @@
>Account</a
>
<a
- *ngIf="hasPermissionForAdminControl"
+ *ngIf="hasPermissionToAccessAdminControl"
class="d-block d-sm-none"
[routerLink]="['/admin']"
i18n
diff --git a/apps/client/src/app/pages/about/about-page.component.ts b/apps/client/src/app/pages/about/about-page.component.ts
index a770ac0a21..1394565fac 100644
--- a/apps/client/src/app/pages/about/about-page.component.ts
+++ b/apps/client/src/app/pages/about/about-page.component.ts
@@ -42,6 +42,8 @@ export class AboutPageComponent implements OnInit {
info.globalPermissions,
permissions.enableSubscription
);
+
+ this.cd.markForCheck();
});
this.isLoggedIn = !!this.tokenStorageService.getToken();