ohif-319: fix asc and desc order on sort label (#1974)
This commit is contained in:
parent
58c2c00663
commit
5fbcec99f8
@ -21,7 +21,7 @@ const InputGroup = ({
|
|||||||
|
|
||||||
const handleFilterLabelClick = name => {
|
const handleFilterLabelClick = name => {
|
||||||
if (isSortingEnable) {
|
if (isSortingEnable) {
|
||||||
let _sortDirection = 'ascending';
|
let _sortDirection = 'descending';
|
||||||
if (sortBy === name) {
|
if (sortBy === name) {
|
||||||
if (sortDirection === 'ascending') {
|
if (sortDirection === 'ascending') {
|
||||||
_sortDirection = 'descending';
|
_sortDirection = 'descending';
|
||||||
|
|||||||
@ -8,8 +8,8 @@ const baseLabelClassName =
|
|||||||
'flex flex-col flex-1 text-white text-lg pl-1 select-none';
|
'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 spanClassName = 'flex flex-row items-center cursor-pointer focus:outline-none';
|
||||||
const sortIconMap = {
|
const sortIconMap = {
|
||||||
ascending: 'sorting-active-up',
|
descending: 'sorting-active-up',
|
||||||
descending: 'sorting-active-down',
|
ascending: 'sorting-active-down',
|
||||||
none: 'sorting',
|
none: 'sorting',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user