Fixed lint errors
This commit is contained in:
parent
b28562d595
commit
057fbfd2a8
@ -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<ConfirmationDialogComponent>,
|
||||
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
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user