Empty query message (#989)

* Add link to standard query library
* Style and external link icon
This commit is contained in:
RachelElysia 2021-06-07 14:44:02 -04:00 committed by GitHub
parent 83acd4911a
commit 225500ad28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 1 deletions

View file

@ -4,6 +4,7 @@ import classnames from "classnames";
import { includes, sortBy, size } from "lodash";
import queryInterface from "interfaces/query";
import FleetIcon from "components/icons/FleetIcon";
import Checkbox from "components/forms/fields/Checkbox";
import QueriesListRow from "components/queries/QueriesList/QueriesListRow";
@ -83,7 +84,16 @@ class QueriesList extends Component {
return (
<tr>
<td colSpan={6}>
<p>No queries available. Try creating one.</p>
<p>
No queries available. Try creating one or get started by&nbsp;
<a
href="https://fleetdm.com/queries"
target="_blank"
rel="noopener noreferrer"
>
importing standard queries <FleetIcon name="external-link" />
</a>
</p>
</td>
</tr>
);

View file

@ -6,6 +6,19 @@
margin-top: $pad-medium;
overflow: scroll;
a {
font-size: $x-small;
color: $core-vibrant-blue;
font-weight: $bold;
text-decoration: none;
img {
width: 12px;
height: 12px;
margin-left: 7px;
}
}
&__table {
border-collapse: collapse;
width: 100%;