From: Bill Erickson Date: Mon, 7 Jan 2019 21:35:15 +0000 (-0500) Subject: LP1779158 Always clear import selection X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1b5985fc636be0748504201f275bf548b376ceeb;p=contrib%2FConifer.git LP1779158 Always clear import selection Clear the import selection (e.g. Queue => Import All Items) from the import UI when the user navigates away, regardless of whether the import succeeded. Otherwise, the import UI gets stuck in selection mode requiring the user to manually clear it. Signed-off-by: Bill Erickson Signed-off-by: Dan Wells --- diff --git a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/import.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/import.component.ts index e3c2d3ded3..9732e5abd6 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/import.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/import.component.ts @@ -180,11 +180,9 @@ export class ImportComponent implements OnInit, AfterViewInit, OnDestroy { } ngOnDestroy() { - // If we successfully completed the most recent - // upload/import assume the importSelection can be cleared. - if (this.uploadComplete) { - this.clearSelection(); - } + // Always clear the import selection when navigating away from + // the import page. + this.clearSelection(); } importSelection(): VandelayImportSelection {