diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a46165fd..130b2a7fb 100644 --- a/CHANGELOG.md +++ b/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 diff --git a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts index 98275e5e7..573d4e5bb 100644 --- a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts +++ b/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))