Show a blue dot on filter icon if there are table filters

This commit is contained in:
navaneeth 2021-05-15 12:43:53 +05:30
parent 17dac6b3ac
commit 4b362b2f15

View file

@ -598,6 +598,9 @@ export function Table({
<div className="col-auto">
<span data-tip="Filter data" className="btn btn-light btn-sm p-1 mx-2" onClick={() => showFilters()}>
<img src="https://www.svgrepo.com/show/264090/filter.svg" width="13" height="13" />
{filters.length > 0 &&
<a class="badge bg-azure" style={{width: '4px', height: '4px', marginTop: '5px'}}></a>
}
</span>
<span
data-tip="Download as CSV"