Browse Source

Bugfix/missing icon of expiration date picker in create or update access dialog (#7819)

* Fix missing icon

* Update changelog
pull/7822/head
Thomas Kaul 3 days ago
committed by GitHub
parent
commit
2eca6e7dc2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 15
      apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts

1
CHANGELOG.md

@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed the missing icon of the expiration date picker in the create or update access dialog
- Fixed the data provider information in the holding detail dialog
- Fixed the storage of the market data in the data provider service to only include the newly fetched quotes
- Fixed the immediate expiration of a portfolio snapshot with errors

15
apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts

@ -56,9 +56,12 @@ import {
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
import { MatSelectModule } from '@angular/material/select';
import { IonIcon } from '@ionic/angular/standalone';
import { AccessType } from '@prisma/client';
import { addYears, endOfDay, isBefore, isValid, startOfDay } from 'date-fns';
import { addDays, addYears, endOfDay, isValid, startOfDay } from 'date-fns';
import { StatusCodes } from 'http-status-codes';
import { addIcons } from 'ionicons';
import { calendarClearOutline } from 'ionicons/icons';
import { EMPTY, catchError } from 'rxjs';
import { CreateOrUpdateAccessDialogParams } from './interfaces/interfaces';
@ -70,6 +73,7 @@ import { CreateOrUpdateAccessDialogParams } from './interfaces/interfaces';
FormsModule,
GfAccessLevelIconComponent,
GfPortfolioFilterFormComponent,
IonIcon,
JsonPipe,
MatButtonModule,
MatDatepickerModule,
@ -116,6 +120,8 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit {
public constructor() {
this.mode = this.data.access ? 'update' : 'create';
addIcons({ calendarClearOutline });
}
public get canApplyFilters() {
@ -168,13 +174,10 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit {
]
});
this.minExpiresAt =
access?.expiresAt && isBefore(new Date(access.expiresAt), this.today)
? startOfDay(new Date(access.expiresAt))
: this.today;
this.assetClasses = getAssetClassFilters();
this.minExpiresAt = addDays(this.today, 1);
this.userService
.get()
.pipe(takeUntilDestroyed(this.destroyRef))

Loading…
Cancel
Save