LP#1855780: tweaks to grids
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 8 Nov 2021 20:58:04 +0000 (15:58 -0500)
committerJane Sandberg <sandbergja@gmail.com>
Wed, 17 Nov 2021 19:55:12 +0000 (11:55 -0800)
- make main A/T event definition grid header sticky
- do not display environment ID and parameter ID
  columns by default in the event definition
  editor

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Open-ILS/src/eg2/src/app/staff/admin/local/triggers/trigger-edit.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.html

index 253601d..29f54a7 100644 (file)
@@ -30,7 +30,7 @@
         <ng-template ngbNavContent>
             <h3 class="mb-3">Trigger Event Environment</h3>
             <eg-grid #envGrid idlClass="atenv" [dataSource]="envDataSource" 
-                showFields="id,path,collector,label"
+                showFields="path,collector,label"
                 (onRowActivate)="editSelected([$event])">
                 <eg-grid-toolbar-button label="New Environment" i18n-label
                     [action]="createNewEnv"></eg-grid-toolbar-button>
@@ -48,7 +48,7 @@
         <ng-template ngbNavContent>
             <h3 class="mb-3">Trigger Event Parameters</h3>
             <eg-grid #paramGrid idlClass="atevparam" [dataSource]="paramDataSource" 
-                showFields="id,param,value" (onRowActivate)="editSelected([$event])">
+                showFields="param,value" (onRowActivate)="editSelected([$event])">
                 <eg-grid-toolbar-button label="New Parameter" i18n-label
                     [action]="createNewParam"></eg-grid-toolbar-button>
                 <eg-grid-toolbar-action label="Edit Parameter" i18n-label 
index 43c3f04..170dcb2 100644 (file)
@@ -24,7 +24,7 @@
         <h4 class="mb-3 mt-3">Trigger Event Definitions</h4>
         <eg-grid #eventsGrid idlClass="atevdef" [dataSource]="eventsDataSource" 
             showFields="owner,name,hook,active,delay,delay_field,group_field,reactor,validator,repeat_delay,granularity,retention_interval"
-            [showLinkSelectors]="true" [sortable]="true" 
+            [showLinkSelectors]="true" [sortable]="true" [stickyHeader]="true"
             (onRowActivate)="editSelected([$event])" [filterable]="true">
             <eg-grid-toolbar-button label="New Event Definition" i18n-label
                 [action]="createNewEvent"></eg-grid-toolbar-button>