Browse Source

Bugfix/links to open create activity dialog (#7418)

* Fix links to open create activity dialog

* Update changelog
pull/7421/head
Thomas Kaul 5 days ago
committed by GitHub
parent
commit
c90142fae9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      CHANGELOG.md
  2. 2
      apps/client/src/app/components/home-overview/home-overview.component.ts
  3. 2
      apps/client/src/app/components/home-overview/home-overview.html
  4. 3
      libs/ui/src/lib/no-transactions-info/no-transactions-info.component.html
  5. 4
      libs/ui/src/lib/no-transactions-info/no-transactions-info.component.ts

2
CHANGELOG.md

@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Fixed the _Add activity_ link of the onboarding on the overview tab of the home page to open the create activity dialog
- Fixed the link of the no transactions info component to open the create activity dialog
- Resolved an exception in the `POST api/v1/activities` endpoint when creating an activity with the update account balance option but without an account - Resolved an exception in the `POST api/v1/activities` endpoint when creating an activity with the update account balance option but without an account
## 3.33.0 - 2026-07-25 ## 3.33.0 - 2026-07-25

2
apps/client/src/app/components/home-overview/home-overview.component.ts

@ -58,6 +58,8 @@ export class GfHomeOverviewComponent implements OnInit {
protected readonly routerLinkPortfolio = internalRoutes.portfolio.routerLink; protected readonly routerLinkPortfolio = internalRoutes.portfolio.routerLink;
protected readonly routerLinkPortfolioActivities = protected readonly routerLinkPortfolioActivities =
internalRoutes.portfolio.subRoutes.activities.routerLink; internalRoutes.portfolio.subRoutes.activities.routerLink;
protected readonly routerLinkPortfolioActivitiesCreate =
internalRoutes.portfolio.subRoutes.activities.subRoutes.create.routerLink;
protected readonly deviceType = computed( protected readonly deviceType = computed(
() => this.deviceDetectorService.deviceInfo().deviceType () => this.deviceDetectorService.deviceInfo().deviceType

2
apps/client/src/app/components/home-overview/home-overview.html

@ -52,7 +52,7 @@
<a <a
color="primary" color="primary"
mat-flat-button mat-flat-button
[routerLink]="routerLinkPortfolioActivities" [routerLink]="routerLinkPortfolioActivitiesCreate"
> >
<ng-container i18n>Add activity</ng-container> <ng-container i18n>Add activity</ng-container>
</a> </a>

3
libs/ui/src/lib/no-transactions-info/no-transactions-info.component.html

@ -6,8 +6,7 @@
class="align-items-center justify-content-center" class="align-items-center justify-content-center"
color="primary" color="primary"
mat-button mat-button
[queryParams]="{ createDialog: true }" [routerLink]="routerLinkPortfolioActivitiesCreate"
[routerLink]="routerLinkPortfolioActivities"
> >
<span i18n>Time to add your first activity.</span> <span i18n>Time to add your first activity.</span>
</a> </a>

4
libs/ui/src/lib/no-transactions-info/no-transactions-info.component.ts

@ -23,6 +23,6 @@ import { GfLogoComponent } from '../logo';
export class GfNoTransactionsInfoComponent { export class GfNoTransactionsInfoComponent {
@HostBinding('class.has-border') @Input() hasBorder = true; @HostBinding('class.has-border') @Input() hasBorder = true;
public routerLinkPortfolioActivities = public routerLinkPortfolioActivitiesCreate =
internalRoutes.portfolio.subRoutes.activities.routerLink; internalRoutes.portfolio.subRoutes.activities.subRoutes.create.routerLink;
} }

Loading…
Cancel
Save