From 2cc8a3d355ed6f9d34e1baa2412693095e432269 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Thu, 7 Jan 2021 13:00:46 -0500 Subject: [PATCH] LP1908619 Update to script And the other bit I forgot to add before... Signed-off-by: Terran McCanna --- Open-ILS/src/eg2/src/app/staff/catalog/prefs.component.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/prefs.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/prefs.component.ts index a186fc81ed..a76955effc 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/prefs.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/prefs.component.ts @@ -79,5 +79,13 @@ export class PreferencesComponent implements OnInit { .then(_ => this.toast.success(this.successMsg.text)) .then(_ => value); } + + hasNoHistory(): boolean { + return history.length === 0; + } + + goBack() { + history.back(); + } } -- 2.11.0