Bugfix/fix activities import on non-empty activities page (#4398)

* Add missing import functionality

* Update changelog
This commit is contained in:
Thomas Kaul 2025-03-06 06:30:10 +01:00 committed by GitHub
parent ddb50295b2
commit 12ae54e01b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 4 deletions

View File

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed the missing import functionality on the non-empty activities page
- Fixed the functionality to delete an asset profile of a custom currency in the admin control panel
## 2.143.0 - 2025-03-02

View File

@ -6,9 +6,8 @@
[baseCurrency]="user?.settings?.baseCurrency"
[dataSource]="dataSource"
[deviceType]="deviceType"
[hasPermissionToCreateActivity]="
hasPermissionToCreateActivity && user?.activitiesCount === 0
"
[hasActivities]="user?.activitiesCount > 0"
[hasPermissionToCreateActivity]="hasPermissionToCreateActivity"
[hasPermissionToDeleteActivity]="hasPermissionToDeleteActivity"
[hasPermissionToExportActivities]="!hasImpersonationId"
[locale]="user?.settings?.locale"

View File

@ -500,7 +500,10 @@
/>
@if (
dataSource?.data.length === 0 && hasPermissionToCreateActivity && !isLoading
!hasActivities &&
dataSource?.data.length === 0 &&
hasPermissionToCreateActivity &&
!isLoading
) {
<div class="p-3 text-center">
<gf-no-transactions-info-indicator [hasBorder]="false" />

View File

@ -76,6 +76,7 @@ export class GfActivitiesTableComponent
@Input() baseCurrency: string;
@Input() dataSource: MatTableDataSource<Activity>;
@Input() deviceType: string;
@Input() hasActivities: boolean;
@Input() hasPermissionToCreateActivity: boolean;
@Input() hasPermissionToDeleteActivity: boolean;
@Input() hasPermissionToExportActivities: boolean;