LP1901930 SIP mediator continued
authorBill Erickson <berickxx@gmail.com>
Mon, 30 Nov 2020 15:45:07 +0000 (07:45 -0800)
committerBill Erickson <berickxx@gmail.com>
Mon, 30 Nov 2020 15:45:07 +0000 (07:45 -0800)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/admin/server/sip/account-list.component.ts
Open-ILS/src/eg2/src/app/staff/admin/server/sip/account.component.ts

index 819960e..dcf204e 100644 (file)
@@ -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<any> {
index 78554bf..5b279d3 100644 (file)
@@ -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
         });