ohif-319: fix asc and desc order on sort label (#1974)

This commit is contained in:
Igor Octaviano 2020-08-07 04:03:30 -03:00 committed by GitHub
parent 58c2c00663
commit 5fbcec99f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ const InputGroup = ({
const handleFilterLabelClick = name => {
if (isSortingEnable) {
let _sortDirection = 'ascending';
let _sortDirection = 'descending';
if (sortBy === name) {
if (sortDirection === 'ascending') {
_sortDirection = 'descending';

View File

@ -8,8 +8,8 @@ const baseLabelClassName =
'flex flex-col flex-1 text-white text-lg pl-1 select-none';
const spanClassName = 'flex flex-row items-center cursor-pointer focus:outline-none';
const sortIconMap = {
ascending: 'sorting-active-up',
descending: 'sorting-active-down',
descending: 'sorting-active-up',
ascending: 'sorting-active-down',
none: 'sorting',
};