Skip to content

Commit

Permalink
Show filters and other info even if there are no results
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Fernández Gómez committed Sep 1, 2021
1 parent e9ce038 commit 783e9e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,15 @@ const TGridIntegratedComponent: React.FC<TGridIntegratedProps> = ({
data-test-subj={`events-container-loading-${loading}`}
>
<UpdatedFlexGroup gutterSize="m" justifyContent="flexEnd" alignItems={alignItems}>
<UpdatedFlexItem grow={false} $show={!loading && hasAlerts}>
<UpdatedFlexItem grow={false} $show={!loading}>
<InspectButton title={justTitle} inspect={inspect} loading={loading} />
</UpdatedFlexItem>
<UpdatedFlexItem grow={false} $show={!loading && hasAlerts}>
<UpdatedFlexItem grow={false} $show={!loading}>
{!resolverIsShowing(graphEventId) && additionalFilters}
</UpdatedFlexItem>
{tGridEventRenderedViewEnabled &&
['detections-page', 'detections-rules-details-page'].includes(id) && (
<UpdatedFlexItem grow={false} $show={!loading && hasAlerts}>
<UpdatedFlexItem grow={false} $show={!loading}>
<SummaryViewSelector viewSelected={tableView} onViewChange={setTableView} />
</UpdatedFlexItem>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,11 @@ const TGridStandaloneComponent: React.FC<TGridStandaloneProps> = ({
data-timeline-id={STANDALONE_ID}
data-test-subj={`events-container-loading-${loading}`}
>
<UpdatedFlexGroup gutterSize="s" justifyContent="flexEnd" alignItems="baseline">
<UpdatedFlexItem grow={false} $show={!loading && hasAlerts}>
<UpdatedFlexGroup gutterSize="s" justifyContent="flexEnd" alignItems="center">
<UpdatedFlexItem grow={false} $show={!loading}>
<InspectButton title={justTitle} inspect={inspect} loading={loading} />
</UpdatedFlexItem>
<UpdatedFlexItem grow={false} $show={!loading && hasAlerts}>
<UpdatedFlexItem grow={false} $show={!loading}>
<LastUpdatedAt updatedAt={updatedAt} />
</UpdatedFlexItem>
</UpdatedFlexGroup>
Expand Down

0 comments on commit 783e9e3

Please sign in to comment.