From 8a047d988d7288fbea8d1be5436778cab34e72d3 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 7 Jan 2019 16:35:15 -0500 Subject: [PATCH] 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 --- Open-ILS/src/eg2/src/app/staff/cat/vandelay/import.component.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 { -- 2.11.0