92187: Fix linting errors

This commit is contained in:
Bruno Roemers
2022-06-14 10:22:29 +02:00
parent 35708ae3a8
commit 2750931e92
3 changed files with 5 additions and 5 deletions

View File

@@ -170,12 +170,12 @@ export class AppComponent implements OnInit, AfterViewInit {
/** Implement behavior for interface {@link ModalBeforeDismiss} */ /** Implement behavior for interface {@link ModalBeforeDismiss} */
this.modalConfig.beforeDismiss = async function () { this.modalConfig.beforeDismiss = async function () {
if (typeof this?.componentInstance?.beforeDismiss === 'function') { if (typeof this?.componentInstance?.beforeDismiss === 'function') {
return this.componentInstance.beforeDismiss() return this.componentInstance.beforeDismiss();
} }
// fall back to default behavior // fall back to default behavior
return true; return true;
} };
this.isAuthBlocking$ = this.store.pipe(select(isAuthenticationBlocking)).pipe( this.isAuthBlocking$ = this.store.pipe(select(isAuthenticationBlocking)).pipe(
distinctUntilChanged() distinctUntilChanged()

View File

@@ -20,6 +20,6 @@ export interface ModalBeforeDismiss {
* then the modal won't be dismissed. * then the modal won't be dismissed.
* Docs: https://ng-bootstrap.github.io/#/components/modal/api#NgbModalOptions * Docs: https://ng-bootstrap.github.io/#/components/modal/api#NgbModalOptions
*/ */
beforeDismiss(): boolean | Promise<boolean> beforeDismiss(): boolean | Promise<boolean>;
} }

View File

@@ -13,7 +13,7 @@ export class ItemVersionsSummaryModalComponent implements OnInit, ModalBeforeDis
versionNumber: number; versionNumber: number;
newVersionSummary: string; newVersionSummary: string;
firstVersion = true; firstVersion = true;
submitted$: BehaviorSubject<boolean> submitted$: BehaviorSubject<boolean>;
@Output() createVersionEvent: EventEmitter<string> = new EventEmitter<string>(); @Output() createVersionEvent: EventEmitter<string> = new EventEmitter<string>();
@@ -32,7 +32,7 @@ export class ItemVersionsSummaryModalComponent implements OnInit, ModalBeforeDis
beforeDismiss(): boolean | Promise<boolean> { beforeDismiss(): boolean | Promise<boolean> {
// prevent the modal from being dismissed after version creation is initiated // prevent the modal from being dismissed after version creation is initiated
return !this.submitted$.getValue() return !this.submitted$.getValue();
} }
onModalSubmit() { onModalSubmit() {