From 776a89aab3d585645a845fa1dafca00422b3ac85 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 30 Nov 2020 07:45:07 -0800 Subject: [PATCH] LP1901930 SIP mediator continued Signed-off-by: Bill Erickson --- .../eg2/src/app/staff/admin/server/sip/account-list.component.ts | 2 +- .../src/eg2/src/app/staff/admin/server/sip/account.component.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/sip/account-list.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/server/sip/account-list.component.ts index 819960e53e..dcf204edeb 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/server/sip/account-list.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/server/sip/account-list.component.ts @@ -32,7 +32,7 @@ export class SipAccountListComponent implements OnInit { ngOnInit() { this.gridSource.getRows = (pager: Pager, sort: any[]) => { return this.fetchAccounts(pager, sort); - } + }; } fetchAccounts(pager: Pager, sort: any[]): Observable { diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/sip/account.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/server/sip/account.component.ts index 78554bf85b..5b279d3985 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/server/sip/account.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/server/sip/account.component.ts @@ -53,14 +53,14 @@ export class SipAccountComponent implements OnInit { ngOnInit() { - this.route.paramMap.subscribe(map => { - if (map.get('id') === 'new') { + this.route.paramMap.subscribe(params => { + if (params.get('id') === 'new') { this.account = this.idl.create('sipacc'); // dummy this.createMode = true; return; } - this.accountId = Number(map.get('id')); + this.accountId = Number(params.get('id')); this.loadAccount().toPromise(); // force it to run }); -- 2.11.0