From: Bill Erickson Date: Mon, 22 Feb 2021 16:09:26 +0000 (-0500) Subject: LP1901930 SIP Account admin UI improvements X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ec7d63a0c4703458af12463b65a477a4e627a97a;p=working%2FEvergreen.git LP1901930 SIP Account admin UI improvements * Clear the password value from the password prompt upon close * Add New Account button to account edit page * Fixes issues with navigating between new and existing accounts. * Fixes issues with dialog body/title display. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/share/dialog/prompt.component.html b/Open-ILS/src/eg2/src/app/share/dialog/prompt.component.html index df7147b187..9bc0d5a159 100644 --- a/Open-ILS/src/eg2/src/app/share/dialog/prompt.component.html +++ b/Open-ILS/src/eg2/src/app/share/dialog/prompt.component.html @@ -2,7 +2,7 @@ @@ -17,8 +17,8 @@ diff --git a/Open-ILS/src/eg2/src/app/share/dialog/prompt.component.ts b/Open-ILS/src/eg2/src/app/share/dialog/prompt.component.ts index 1a1a87bfac..177ffae369 100644 --- a/Open-ILS/src/eg2/src/app/share/dialog/prompt.component.ts +++ b/Open-ILS/src/eg2/src/app/share/dialog/prompt.component.ts @@ -31,6 +31,11 @@ export class PromptDialogComponent extends DialogComponent implements OnInit { if (node) { node.focus(); node.select(); } }); } + + closeAndClear(value?: any) { + this.close(value); + this.promptValue = ''; + } } diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/sip/account.component.html b/Open-ILS/src/eg2/src/app/staff/admin/server/sip/account.component.html index a63b3eab97..ded1b74c0c 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/server/sip/account.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/server/sip/account.component.html @@ -13,6 +13,15 @@ + + + + + + @@ -29,14 +38,14 @@ 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 5f72cd4508..a2351e08c3 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 @@ -61,8 +61,11 @@ export class SipAccountComponent implements OnInit { this.account = this.idl.create('sipacc'); // dummy this.createMode = true; return; + } else { + this.createMode = false; } + this.usrId = null; this.accountId = Number(params.get('id')); this.loadAccount().toPromise(); // force it to run });