Skip to content

Commit d8079d8

Browse files
author
Sebastian Benjamin
committed
Add status button for no filters
1 parent e224958 commit d8079d8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

jbrowse/src/client/JBrowse/VariantSearch/components/VariantTableWidget.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@ const VariantTableWidget = observer(props => {
402402
/>
403403
);
404404

405-
406405
return (
407406
<>
408407
<LoadingIndicator isOpen={!dataLoaded}/>
@@ -432,13 +431,18 @@ const VariantTableWidget = observer(props => {
432431
})
433432
}
434433

435-
436434
<div style={{ marginBottom: "10px", display: "flex", alignItems: "center" }}>
437435

438436
<div style={{ flex: 1 }}>
439437
{filters.map((filter, index) => {
440438
if ((filter as any).field == "" || (filter as any).operator == "" || (filter as any).value == "" ) {
441-
return null;
439+
return (<Button
440+
key={index}
441+
onClick={() => setFilterModalOpen(true)}
442+
style={{ border: "1px solid gray", margin: "5px" }}
443+
>
444+
No filters
445+
</Button>)
442446
}
443447
return (
444448
<Button

0 commit comments

Comments
 (0)