From e83a8c001a66ba7378c79c8ccd4451aeb711b956 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 19 Apr 2019 17:20:42 -0400 Subject: [PATCH] LP#1825578: reverse direction of sort-order arrows in eg-grid This patch adjusts the arrow icons used to indicate if a column in the Angular eg-grid is sorted to use the following convention: sort order ascending == display _up_ arrow sort order descending == display _descending_ arrow To test ------- [1] Apply the patch. [2] In a grid with a sortable column (as can be found in /eg2/en-US/staff/sandbox), click on the heading to sort it. Verify that ascending sort displays the upwards arrow and descending sort the downwards. Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- .../src/eg2/src/app/share/grid/grid-header.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-header.component.html b/Open-ILS/src/eg2/src/app/share/grid/grid-header.component.html index 0662f54b0b..98a6fbf365 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-header.component.html +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-header.component.html @@ -24,9 +24,9 @@ (click)="sortOneColumn(col)"> {{col.label}} arrow_downwards + *ngIf="isColumnSorting(col, 'ASC')">arrow_upwards arrow_upwards + *ngIf="isColumnSorting(col, 'DESC')">arrow_downwards {{col.label}} -- 2.43.2