Skip to content

Commit

Permalink
add ability to search without filters
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Petrov <[email protected]>
  • Loading branch information
mike-petrov committed Dec 5, 2024
1 parent 7a3e56d commit 19f3425
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions src/Components/ContainerItem/ContainerItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,21 +407,19 @@ export default function ContainerItem({
disabled={isLoadingObjects}
/>
</Form.Control>
{filters.length > 1 && (
<img
src="/img/icons/trashbin.svg"
width={14}
height={14}
fill="#f14668"
alt="delete"
style={{ cursor: 'pointer', marginLeft: 8 }}
onClick={() => {
let filtersTemp = [ ...filters ];
filtersTemp.splice(indexFilter, 1);
setFilters(filtersTemp);
}}
/>
)}
<img
src="/img/icons/trashbin.svg"
width={14}
height={14}
fill="#f14668"
alt="delete"
style={{ cursor: 'pointer', marginLeft: 8 }}
onClick={() => {
let filtersTemp = [ ...filters ];
filtersTemp.splice(indexFilter, 1);
setFilters(filtersTemp);
}}
/>
</div>
))}
<Button
Expand Down

0 comments on commit 19f3425

Please sign in to comment.