mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
UI – Render Query Report 'No Results' state when discard_data is enabled, regardless of contents/presence of results; cleanup tooltip content (#15777)
## Addresses #15778 and part of #15608 ## Checklist for submitter - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
parent
d49255dfdb
commit
cce6875787
2 changed files with 1 additions and 4 deletions
|
|
@ -342,7 +342,7 @@ const QueryDetailsPage = ({
|
|||
}
|
||||
|
||||
// Empty state with varying messages explaining why there's no results
|
||||
if (emptyCache) {
|
||||
if (emptyCache || lastEditedQueryDiscardData) {
|
||||
return (
|
||||
<NoResults
|
||||
queryInterval={storedQuery?.interval}
|
||||
|
|
|
|||
|
|
@ -75,7 +75,6 @@ const NoResults = ({
|
|||
The following setting prevents saving this query's results
|
||||
in Fleet:
|
||||
</div>
|
||||
\
|
||||
<div>
|
||||
• Query reports are globally disabled in organization
|
||||
settings.
|
||||
|
|
@ -90,7 +89,6 @@ const NoResults = ({
|
|||
The following setting prevents saving this query's results
|
||||
in Fleet:
|
||||
</div>
|
||||
\
|
||||
<div>
|
||||
• This query has <b>Discard data</b> enabled.
|
||||
</div>
|
||||
|
|
@ -104,7 +102,6 @@ const NoResults = ({
|
|||
The following setting prevents saving this query's results
|
||||
in Fleet:
|
||||
</div>
|
||||
\
|
||||
<div>
|
||||
• The logging setting for this query is not{" "}
|
||||
<b>Snapshot</b>.
|
||||
|
|
|
|||
Loading…
Reference in a new issue