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 <berickxx@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
}
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 {