funds: having the funding source name column be hyperlinked
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 3 Jun 2021 21:29:26 +0000 (17:29 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 3 Jun 2021 21:29:26 +0000 (17:29 -0400)
... and open the View Credits modal

LH#36

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

index 3646ce7..55599ea 100644 (file)
     group="Allocations" i18n-group [disableOnRows]="notOneSelectedRow">
   </eg-grid-toolbar-action>
 
-  <eg-grid-column path="name"></eg-grid-column>
+  <ng-template #nameTmpl let-row="row">
+    <a href="" (click)="openTransactionsDialog([row], 'credits'); false">
+      {{row.name()}}
+    </a>
+  </ng-template>
+  <eg-grid-column path="name" [cellTemplate]="nameTmpl"></eg-grid-column>
   <eg-grid-column path="owner"></eg-grid-column>
   <eg-grid-column path="code"></eg-grid-column>
   <eg-grid-column path="currency_type"></eg-grid-column>