Feature/hide actions in presenter view (#380)

* Hide actions if restricted view is active

* Update changelog
pull/389/head
Thomas Kaul 3 years ago committed by GitHub
parent 8466e3d73f
commit 508a48f4c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 - 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 ## 1.55.0 - 20.09.2021
### Changed ### Changed

@ -7,7 +7,7 @@
[baseCurrency]="user?.settings?.baseCurrency" [baseCurrency]="user?.settings?.baseCurrency"
[deviceType]="deviceType" [deviceType]="deviceType"
[locale]="user?.settings?.locale" [locale]="user?.settings?.locale"
[showActions]="!hasImpersonationId && hasPermissionToDeleteAccount" [showActions]="!hasImpersonationId && hasPermissionToDeleteAccount && !user.settings.isRestrictedView"
(accountDeleted)="onDeleteAccount($event)" (accountDeleted)="onDeleteAccount($event)"
(accountToUpdate)="onUpdateAccount($event)" (accountToUpdate)="onUpdateAccount($event)"
></gf-accounts-table> ></gf-accounts-table>
@ -15,7 +15,7 @@
</div> </div>
<div <div
*ngIf="!hasImpersonationId && hasPermissionToCreateAccount" *ngIf="!hasImpersonationId && hasPermissionToCreateAccount && !user.settings.isRestrictedView"
class="fab-container" class="fab-container"
> >
<a <a

@ -7,7 +7,7 @@
[deviceType]="deviceType" [deviceType]="deviceType"
[hasPermissionToImportOrders]="hasPermissionToImportOrders" [hasPermissionToImportOrders]="hasPermissionToImportOrders"
[locale]="user?.settings?.locale" [locale]="user?.settings?.locale"
[showActions]="!hasImpersonationId && hasPermissionToDeleteOrder" [showActions]="!hasImpersonationId && hasPermissionToDeleteOrder && !user.settings.isRestrictedView"
[transactions]="transactions" [transactions]="transactions"
(export)="onExport()" (export)="onExport()"
(import)="onImport()" (import)="onImport()"
@ -19,7 +19,7 @@
</div> </div>
<div <div
*ngIf="!hasImpersonationId && hasPermissionToCreateOrder" *ngIf="!hasImpersonationId && hasPermissionToCreateOrder && !user.settings.isRestrictedView"
class="fab-container" class="fab-container"
> >
<a <a

Loading…
Cancel
Save