From: Bill Erickson Date: Mon, 30 Nov 2020 15:45:07 +0000 (-0800) Subject: LP1901930 SIP mediator continued X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=776a89aab3d585645a845fa1dafca00422b3ac85;p=working%2FEvergreen.git LP1901930 SIP mediator continued Signed-off-by: Bill Erickson --- 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 });