[SSE] Edit code filter
This commit is contained in:
parent
3a4c4b1316
commit
a416d583fa
|
@ -11,7 +11,7 @@ const FilterOptionsController = () => {
|
||||||
const [configFilter, setConfig] = useState(null);
|
const [configFilter, setConfig] = useState(null);
|
||||||
const [listVal, setListValue] = useState([]);
|
const [listVal, setListValue] = useState([]);
|
||||||
const [isValid, setIsValid] = useState(null);
|
const [isValid, setIsValid] = useState(null);
|
||||||
const [checkSort, setCheckSort] = useState(null);
|
const [checkSort, setCheckSort] = useState('');
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
function onDocumentReady() {
|
function onDocumentReady() {
|
||||||
|
@ -35,8 +35,7 @@ const FilterOptionsController = () => {
|
||||||
const onApiFilterOptions= (config) => {
|
const onApiFilterOptions= (config) => {
|
||||||
setDataFilterCells(config);
|
setDataFilterCells(config);
|
||||||
setConfig(config);
|
setConfig(config);
|
||||||
setClearDisable(config);
|
|
||||||
|
|
||||||
setCheckSort((config.asc_getSortState() === Asc.c_oAscSortOptions.Ascending ? 'down' : '') ||
|
setCheckSort((config.asc_getSortState() === Asc.c_oAscSortOptions.Ascending ? 'down' : '') ||
|
||||||
(config.asc_getSortState() === Asc.c_oAscSortOptions.Descending ? 'up' : ''));
|
(config.asc_getSortState() === Asc.c_oAscSortOptions.Descending ? 'up' : ''));
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ const FilterOptions = (props) => {
|
||||||
</List>
|
</List>
|
||||||
|
|
||||||
<List >
|
<List >
|
||||||
<ListButton color="black" className={props.isValid ? 'disabled' : ''} onClick={HandleClearFilter}>{_t.textClearFilter}</ListButton>
|
<ListButton color="black" className={props.isValid || is_all_checked ? 'disabled' : ''} onClick={HandleClearFilter}>{_t.textClearFilter}</ListButton>
|
||||||
<ListButton color="red" onClick={() => props.onDeleteFilter()} id="btn-delete-filter">{_t.textDeleteFilter}</ListButton>
|
<ListButton color="red" onClick={() => props.onDeleteFilter()} id="btn-delete-filter">{_t.textDeleteFilter}</ListButton>
|
||||||
</List>
|
</List>
|
||||||
<List>
|
<List>
|
||||||
|
|
Loading…
Reference in a new issue