mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
92187: Fix linting errors
This commit is contained in:
@@ -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()
|
||||||
|
@@ -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>;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user