Fixed lint errors
This commit is contained in:
parent
a6e5c0d9ff
commit
5eda852e94
@ -1,4 +1,4 @@
|
||||
import { IconButtonType } from '@iqser/common-ui';
|
||||
import { IconButtonType } from '../../../buttons';
|
||||
import { ActionConfig } from './action-config.model';
|
||||
|
||||
export interface ButtonConfig extends ActionConfig {
|
||||
|
||||
@ -18,7 +18,7 @@ export class PageHeaderComponent<T extends IListable> {
|
||||
readonly iconButtonTypes = IconButtonTypes;
|
||||
|
||||
@Input() pageLabel?: string;
|
||||
@Input() showCloseButton: boolean = false;
|
||||
@Input() showCloseButton = false;
|
||||
@Input() actionConfigs?: readonly ActionConfig[];
|
||||
@Input() buttonConfigs?: readonly ButtonConfig[];
|
||||
@Input() viewModeSelection?: TemplateRef<unknown>;
|
||||
|
||||
@ -38,7 +38,9 @@ export class CustomRouteReuseStrategy implements RouteReuseStrategy {
|
||||
|
||||
const element: any = handle;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
if (element?.componentRef?.instance?.ngOnDetach) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
this._onDetach(element.componentRef?.instance);
|
||||
}
|
||||
|
||||
@ -56,7 +58,9 @@ export class CustomRouteReuseStrategy implements RouteReuseStrategy {
|
||||
const key = this._getKey(route);
|
||||
const element: any = this._storedRoutes[key]?.handle;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
if (element?.componentRef?.instance?.ngOnAttach) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
this._onAttach(element.componentRef?.instance, this._storedRoutes[key].previousRoute);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user