Browse Source
Feature/display markets overview link in footer based on permission (#2059)
* Add check for permission
* Update changelog
pull/2060/head
Thomas Kaul
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
10 additions and
1 deletions
-
CHANGELOG.md
-
apps/client/src/app/app.component.html
-
apps/client/src/app/app.component.ts
|
@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
|
- Extended the clone functionality of a transaction by the quantity |
|
|
- Extended the clone functionality of a transaction by the quantity |
|
|
- Changed the direction of the ellipsis icon in various tables |
|
|
- Changed the direction of the ellipsis icon in various tables |
|
|
|
|
|
- Displayed the link to the markets overview in the footer based on a permission |
|
|
- Refreshed the cryptocurrencies list |
|
|
- Refreshed the cryptocurrencies list |
|
|
- Upgraded `Node.js` from version `16` to `18` (`Dockerfile`) |
|
|
- Upgraded `Node.js` from version `16` to `18` (`Dockerfile`) |
|
|
|
|
|
|
|
|
|
@ -66,7 +66,9 @@ |
|
|
<div class="col-sm"> |
|
|
<div class="col-sm"> |
|
|
<div class="h6 mt-2" i18n>Personal Finance</div> |
|
|
<div class="h6 mt-2" i18n>Personal Finance</div> |
|
|
<ul class="list-unstyled"> |
|
|
<ul class="list-unstyled"> |
|
|
<li><a i18n [routerLink]="['/markets']">Markets</a></li> |
|
|
<li *ngIf="hasPermissionToAccessFearAndGreedIndex"> |
|
|
|
|
|
<a i18n [routerLink]="['/markets']">Markets</a> |
|
|
|
|
|
</li> |
|
|
<li><a i18n [routerLink]="['/resources']">Resources</a></li> |
|
|
<li><a i18n [routerLink]="['/resources']">Resources</a></li> |
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
|
@ -34,6 +34,7 @@ export class AppComponent implements OnDestroy, OnInit { |
|
|
public deviceType: string; |
|
|
public deviceType: string; |
|
|
public hasPermissionForBlog: boolean; |
|
|
public hasPermissionForBlog: boolean; |
|
|
public hasPermissionForSubscription: boolean; |
|
|
public hasPermissionForSubscription: boolean; |
|
|
|
|
|
public hasPermissionToAccessFearAndGreedIndex: boolean; |
|
|
public info: InfoItem; |
|
|
public info: InfoItem; |
|
|
public pageTitle: string; |
|
|
public pageTitle: string; |
|
|
public user: User; |
|
|
public user: User; |
|
@ -69,6 +70,11 @@ export class AppComponent implements OnDestroy, OnInit { |
|
|
permissions.enableSubscription |
|
|
permissions.enableSubscription |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
this.hasPermissionToAccessFearAndGreedIndex = hasPermission( |
|
|
|
|
|
this.info?.globalPermissions, |
|
|
|
|
|
permissions.enableFearAndGreedIndex |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
this.router.events |
|
|
this.router.events |
|
|
.pipe(filter((event) => event instanceof NavigationEnd)) |
|
|
.pipe(filter((event) => event instanceof NavigationEnd)) |
|
|
.subscribe(() => { |
|
|
.subscribe(() => { |
|
|