LP1904036 Patron edit disabled save buttons more obvious
authorBill Erickson <berickxx@gmail.com>
Thu, 27 Jan 2022 20:50:40 +0000 (15:50 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:40 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/circ/patron/edit-toolbar.component.html
Open-ILS/src/eg2/src/app/staff/circ/patron/edit-toolbar.component.ts

index 3afbada..b72e5f8 100644 (file)
       <button class="btn btn-outline-dark"
         (click)="printClicked.emit()" i18n>Print</button>
       <button class="btn btn-outline-dark ml-2" [disabled]="disableSave"
+        [ngClass]="{'border border-danger pointer-not-allowed': disableSave}" 
         (click)="saveClicked.emit()" i18n>Save</button>
       <button class="btn btn-outline-dark ml-2" [disabled]="disableSave"
+        [ngClass]="{'border border-danger pointer-not-allowed': disableSave}" 
         (click)="saveCloneClicked.emit()" i18n>Save &amp; Clone</button>
     </div>
   </div>
index a72cf7d..9b72101 100644 (file)
@@ -25,7 +25,10 @@ interface DupeSearch {
 
 @Component({
   templateUrl: 'edit-toolbar.component.html',
-  selector: 'eg-patron-edit-toolbar'
+  selector: 'eg-patron-edit-toolbar',
+  styles: [
+    `.pointer-not-allowed:hover { cursor: not-allowed }`
+  ]
 })
 export class EditToolbarComponent implements OnInit {