removed base dialog from help mode dialog

This commit is contained in:
Valentin Mihai 2024-05-20 14:31:30 +03:00
parent 5cc09f251e
commit b7c8634407

View File

@ -1,6 +1,4 @@
import { ChangeDetectionStrategy, Component, OnDestroy, OnInit } from '@angular/core';
import { BaseDialogComponent } from '../../dialog';
import { MatDialogRef } from '@angular/material/dialog';
const HIGHER_CDK_OVERLAY_CONTAINER_ZINDEX = '1200';
const DEFAULT_CDK_OVERLAY_CONTAINER_ZINDEX = '800';
@ -10,12 +8,12 @@ const DEFAULT_CDK_OVERLAY_CONTAINER_ZINDEX = '800';
styleUrls: ['./help-mode-dialog.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class HelpModeDialogComponent extends BaseDialogComponent implements OnInit, OnDestroy {
export class HelpModeDialogComponent implements OnInit, OnDestroy {
protected doNotShowAgainOption = false;
constructor(protected readonly _dialogRef: MatDialogRef<HelpModeDialogComponent>) {
super(_dialogRef);
}
// constructor(protected readonly _dialogRef: MatDialogRef<HelpModeDialogComponent>) {
// super(_dialogRef);
// }
ngOnInit(): void {
this._setCdkOverlayContainerZIndex(HIGHER_CDK_OVERLAY_CONTAINER_ZINDEX);
@ -34,7 +32,7 @@ export class HelpModeDialogComponent extends BaseDialogComponent implements OnIn
}
close() {
return this._dialogRef.close(this.doNotShowAgainOption);
// return this._dialogRef.close(this.doNotShowAgainOption);
}
private _setCdkOverlayContainerZIndex(zIndex: string): void {