hide provider column by default in contact and address grids...
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 25 Mar 2020 16:01:54 +0000 (12:01 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 25 Mar 2020 16:01:54 +0000 (12:01 -0400)
... but if the user insists on displaying that column, redundantly,
flesh it so that the code is displayed

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/acq/provider/provider-addresses.component.html
Open-ILS/src/eg2/src/app/staff/acq/provider/provider-contacts.component.html
Open-ILS/src/eg2/src/app/staff/acq/provider/provider-record.service.ts

index a843b20..4967b98 100644 (file)
@@ -9,6 +9,7 @@
   persistKey="acq.provider.addresses.grid"
   idlClass="acqpa" [dataSource]="gridSource"
   [sortable]="true"
+  hideFields="provider"
   [cellTextGenerator]="cellTextGenerator">
     <eg-grid-toolbar-button 
       label="New Provider Address" i18n-label (onClick)="createNew()">
index 7152c2f..fc0f733 100644 (file)
@@ -18,6 +18,7 @@
   persistKey="acq.provider.contacts.grid"
   idlClass="acqpc" [dataSource]="gridSource"
   [sortable]="true"
+  hideFields="provider"
   [cellTextGenerator]="cellTextGenerator">
 
   <eg-grid-toolbar-button label="New Provider Contact" i18n-label (onClick)="createNew()"></eg-grid-toolbar-button>
index 857891c..49893ed 100644 (file)
@@ -38,8 +38,11 @@ export class ProviderRecordService {
         this.currentProviderId = id;
         return this.pcrud.search('acqpro', { id: id },
             {
-                flesh: 1,
-                flesh_fields: { acqpro: ['contacts', 'addresses', 'provider_notes'] }
+                flesh: 3,
+                flesh_fields: { acqpro: ['contacts', 'addresses', 'provider_notes'],
+                                acqpa:  ['provider'],
+                                acqpc:  ['provider'],
+                              }
             },
             {}
         ).pipe(map(acqpro => {