fix: instances should not be able to sort

This commit is contained in:
Rodrigo Antinarelli 2020-06-26 12:20:18 -03:00
parent 5180eb127d
commit ec48801be7
2 changed files with 11 additions and 3 deletions

View File

@ -21,13 +21,21 @@ const InputLabelWrapper = ({
className, className,
children, children,
}) => { }) => {
const onClickHandler = e => {
if (!isSortable) {
return;
}
onLabelClick(e);
};
return ( return (
<label className={classnames(baseLabelClassName, className)}> <label className={classnames(baseLabelClassName, className)}>
<span <span
role="button" role="button"
className={spanClassName} className={spanClassName}
onClick={onLabelClick} onClick={onClickHandler}
onKeyDown={onLabelClick} onKeyDown={onClickHandler}
tabIndex="0" tabIndex="0"
> >
{label} {label}

View File

@ -53,7 +53,7 @@ const filtersMeta = [
name: 'instances', name: 'instances',
displayName: 'Instances', displayName: 'Instances',
inputType: 'None', inputType: 'None',
isSortable: true, isSortable: false,
gridCol: 2, gridCol: 2,
}, },
]; ];