From b2d970d976c10210cac8872d9798f2dc69d3c732 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 22 Feb 2021 11:09:26 -0500 Subject: [PATCH] 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 --- Open-ILS/src/eg2/src/app/share/dialog/prompt.component.html | 6 +++--- Open-ILS/src/eg2/src/app/share/dialog/prompt.component.ts | 5 +++++ .../src/app/staff/admin/server/sip/account.component.html | 13 +++++++++++-- .../eg2/src/app/staff/admin/server/sip/account.component.ts | 3 +++ 4 files changed, 22 insertions(+), 5 deletions(-) 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 ca479616d7..50e8236783 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 @@ @@ -14,8 +14,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 a5d8ecab90..4db0896b6f 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 @@ -16,6 +16,11 @@ export class PromptDialogComponent extends DialogComponent { @Input() public promptValue: string; // 'password', etc. @Input() promptType = 'text'; + + 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 }); -- 2.11.0