LP1901897 Add last refresh time to carousel grid user/mccanna/lp1901897_carousel_include_refresh_time
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 28 Oct 2020 23:47:23 +0000 (19:47 -0400)
committerTerran McCanna <tmccanna@georgialibraries.org>
Wed, 28 Oct 2020 23:47:23 +0000 (19:47 -0400)
Modification to the carousel grid to display the last refresh
time along with the last refresh date.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/eg2/src/app/staff/admin/local/admin-carousel.component.html

index 6740171..4254869 100644 (file)
   <eg-grid-column path="age_filter" [hidden]="true"></eg-grid-column>
   <eg-grid-column path="owning_lib_filter" [hidden]="true"></eg-grid-column>
   <eg-grid-column path="copy_location_filter" [hidden]="true"></eg-grid-column>
+  <ng-template #lastRefreshTmpl let-carousel="row">
+        {{carousel.last_refresh_time() | date:'short'}}
+  </ng-template>
+  <eg-grid-column  [hidden]="false" i18n-label label="Last Refresh Date-Time" [cellTemplate]="lastRefreshTmpl"></eg-grid-column>
 </eg-grid>
 
 <ng-template #bucketTemplate