From 7a2e3a06d19d82a544cc9c7c718d89923ab24ef4 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 19 Apr 2021 16:37:52 -0400 Subject: [PATCH] funds: fix default tab logic Closes LH#5 and LH#6 Signed-off-by: Galen Charlton --- .../src/app/staff/admin/acq/funds/fund-details-dialog.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/fund-details-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/fund-details-dialog.component.ts index 641dbcf021..14ad68d725 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/fund-details-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/fund-details-dialog.component.ts @@ -63,11 +63,14 @@ export class FundDetailsDialogComponent ngOnInit() { this.defaultTabType = - this.store.getLocalItem('eg.acq.fund_details.default_tab') || 'details'; + this.store.getLocalItem('eg.acq.fund_details.default_tab') || 'summary'; this.activeTab = this.defaultTabType; this.fund = null; - this.onOpen$.subscribe(() => this._initRecord()); + this.onOpen$.subscribe(() => { + this.activeTab = this.defaultTabType; + this._initRecord(); + }); this.idlDef = this.idl.classes['acqf']; this.fieldOrder = 'name,code,year,org,active,currency_type,balance_stop_percentage,balance_warning_percentage,propagate,rollover'; -- 2.11.0