diff --git a/src/lib/misc/confirmation-dialog/confirmation-dialog.component.ts b/src/lib/misc/confirmation-dialog/confirmation-dialog.component.ts index 375d8ed..4c8e84f 100644 --- a/src/lib/misc/confirmation-dialog/confirmation-dialog.component.ts +++ b/src/lib/misc/confirmation-dialog/confirmation-dialog.component.ts @@ -7,7 +7,7 @@ export type TitleColor = 'default' | 'primary'; export enum TitleColors { DEFAULT = 'default', - PRIMARY = 'primary', + PRIMARY = 'primary' } export class ConfirmationDialogInput { @@ -37,7 +37,7 @@ export class ConfirmationDialogInput { @Component({ templateUrl: './confirmation-dialog.component.html', styleUrls: ['./confirmation-dialog.component.scss'], - changeDetection: ChangeDetectionStrategy.OnPush, + changeDetection: ChangeDetectionStrategy.OnPush }) export class ConfirmationDialogComponent { config: ConfirmationDialogInput; @@ -47,12 +47,12 @@ export class ConfirmationDialogComponent { constructor( private readonly _dialogRef: MatDialogRef, private readonly _translateService: TranslateService, - @Inject(MAT_DIALOG_DATA) private readonly _confirmationDialogInput: ConfirmationDialogInput, + @Inject(MAT_DIALOG_DATA) private readonly _confirmationDialogInput: ConfirmationDialogInput ) { this.config = _confirmationDialogInput ?? new ConfirmationDialogInput(); this.translate(this.config); this.inputLabel = `${this._translateService.instant('confirmation-dialog.input-label') as string} '${ - this.config.confirmationText + this.config.confirmationText || '' }'`; } @@ -86,14 +86,14 @@ export class ConfirmationDialogComponent { 'details', 'confirmationText', 'alternativeConfirmationText', - 'denyText', + 'denyText' ]; translateKeys .filter(key => !!obj[key]) .forEach(key => { Object.assign(obj, { - [key]: this._translateService.instant(obj[key] as string, this.config.translateParams) as string, + [key]: this._translateService.instant(obj[key] as string, this.config.translateParams) as string }); }); } diff --git a/src/lib/utils/custom-route-reuse.strategy.ts b/src/lib/utils/custom-route-reuse.strategy.ts index 3780fe2..2d51245 100644 --- a/src/lib/utils/custom-route-reuse.strategy.ts +++ b/src/lib/utils/custom-route-reuse.strategy.ts @@ -36,6 +36,7 @@ export class CustomRouteReuseStrategy implements RouteReuseStrategy { } CustomRouteReuseStrategy._removeTooltips(); + // eslint-disable-next-line @typescript-eslint/no-explicit-any const element: any = handle; // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access @@ -56,6 +57,7 @@ export class CustomRouteReuseStrategy implements RouteReuseStrategy { retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle { const key = this._getKey(route); + // eslint-disable-next-line @typescript-eslint/no-explicit-any const element: any = this._storedRoutes[key]?.handle; // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access