Skip to content

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

Feature/hide actions in presenter view (#380)

Thomas Kaul508a48f4c3f5
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ef8109aab8..0ebbca8a49 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Changed the navigation to always show the portfolio page
+### Fixed
+
+- Hid the actions from the accounts table in the _Presenter View_
+- Hid the actions from the transactions table in the _Presenter View_
+
## 1.55.0 - 20.09.2021
### Changed
diff --git a/apps/client/src/app/pages/accounts/accounts-page.html b/apps/client/src/app/pages/accounts/accounts-page.html
index f4cc362232..b398c6981d 100644
--- a/apps/client/src/app/pages/accounts/accounts-page.html
+++ b/apps/client/src/app/pages/accounts/accounts-page.html
@@ -7,7 +7,7 @@
[baseCurrency]="user?.settings?.baseCurrency"
[deviceType]="deviceType"
[locale]="user?.settings?.locale"
- [showActions]="!hasImpersonationId && hasPermissionToDeleteAccount"
+ [showActions]="!hasImpersonationId && hasPermissionToDeleteAccount && !user.settings.isRestrictedView"
(accountDeleted)="onDeleteAccount($event)"
(accountToUpdate)="onUpdateAccount($event)"
></gf-accounts-table>
@@ -15,7 +15,7 @@
</div>
<div
- *ngIf="!hasImpersonationId && hasPermissionToCreateAccount"
+ *ngIf="!hasImpersonationId && hasPermissionToCreateAccount && !user.settings.isRestrictedView"
class="fab-container"
>
<a
diff --git a/apps/client/src/app/pages/portfolio/transactions/transactions-page.html b/apps/client/src/app/pages/portfolio/transactions/transactions-page.html
index 83ed79060c..5288d73132 100644
--- a/apps/client/src/app/pages/portfolio/transactions/transactions-page.html
+++ b/apps/client/src/app/pages/portfolio/transactions/transactions-page.html
@@ -7,7 +7,7 @@
[deviceType]="deviceType"
[hasPermissionToImportOrders]="hasPermissionToImportOrders"
[locale]="user?.settings?.locale"
- [showActions]="!hasImpersonationId && hasPermissionToDeleteOrder"
+ [showActions]="!hasImpersonationId && hasPermissionToDeleteOrder && !user.settings.isRestrictedView"
[transactions]="transactions"
(export)="onExport()"
(import)="onImport()"
@@ -19,7 +19,7 @@
</div>
<div
- *ngIf="!hasImpersonationId && hasPermissionToCreateOrder"
+ *ngIf="!hasImpersonationId && hasPermissionToCreateOrder && !user.settings.isRestrictedView"
class="fab-container"
>
<a