funds: set double-click-on-row handlers for funds and funding sources
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 19 Apr 2021 21:31:22 +0000 (17:31 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 19 Apr 2021 21:31:22 +0000 (17:31 -0400)
Both opening the edit dialog for sake of consistency, although for the funds
page the fund details dialog might be a better choice.

Extends fix for LH#11

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funding-sources.component.html
Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds-manager.component.html

index 76833a8..1395976 100644 (file)
@@ -47,6 +47,7 @@
 <eg-grid #grid idlClass="{{idlClass}}" [dataSource]="dataSource" hideFields="{{hideGridFields}}"
     [sortable]="true" persistKey="{{persistKey}}" autoGeneratedColumnOrder="{{fieldOrder}}"
     [filterable]="true" [stickyHeader]="true"
+    (onRowActivate)="editSelected([$event])"
     [cellTextGenerator]="cellTextGenerator">
   <eg-grid-toolbar-button [disabled]="!canCreate" 
     label="New {{idlClassDef.label}}" i18n-label (onClick)="createNew()">
index 06af88a..6736e44 100644 (file)
@@ -47,6 +47,7 @@
 <eg-grid #grid idlClass="{{idlClass}}" [dataSource]="dataSource" hideFields="{{hideGridFields}}"
     [sortable]="true" persistKey="{{persistKey}}" autoGeneratedColumnOrder="{{fieldOrder}}"
     [filterable]="true" [stickyHeader]="true"
+    (onRowActivate)="editSelected([$event])"
     [cellTextGenerator]="cellTextGenerator">
   <eg-grid-toolbar-button [disabled]="!canCreate" 
     label="New {{idlClassDef.label}}" i18n-label (onClick)="createNew()">