LP1840773 SCKO Angular Minor Fixes
authorBill Erickson <berickxx@gmail.com>
Thu, 7 Jul 2022 15:44:59 +0000 (11:44 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 21 Feb 2023 20:04:04 +0000 (15:04 -0500)
Open Manage Workstations link in a new browser tab.

Clear patron login info as soon as possible after login.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/scko/banner.component.html
Open-ILS/src/eg2/src/app/staff/scko/banner.component.ts

index 6f72e12..21dbc45 100644 (file)
             <button type="submit" class="btn btn-outline-dark" i18n>Sign In</button>
           </div>
           <div class="col-lg-3">
-            <a href="/eg/staff/admin/workstation/workstations" i18n>
+            <a target="_blank" href="/eg/staff/admin/workstation/workstations" i18n>
               Manage Workstations
             </a>
           </div>
index 11476d2..5805d32 100644 (file)
@@ -128,6 +128,8 @@ export class SckoBannerComponent implements OnInit, AfterViewInit {
     submitPatronLogin() {
         this.patronLoginFailed = false;
         this.scko.loadPatron(this.patronUsername, this.patronPassword).finally(() => {
+            this.patronUsername = '';
+            this.patronPassword = '';
             if (this.scko.patronSummary === null) {
                 this.patronLoginFailed = true;
             } else {