diff --git a/changes/20143-targets-input-spinner b/changes/20143-targets-input-spinner new file mode 100644 index 0000000000..da5e679348 --- /dev/null +++ b/changes/20143-targets-input-spinner @@ -0,0 +1 @@ +- Fix styling issues with the target inputs loading spinner on the run live query/policy page. diff --git a/frontend/components/LiveQuery/TargetsInput/TargetsInput.tsx b/frontend/components/LiveQuery/TargetsInput/TargetsInput.tsx index e18200309c..dcfc2074d8 100644 --- a/frontend/components/LiveQuery/TargetsInput/TargetsInput.tsx +++ b/frontend/components/LiveQuery/TargetsInput/TargetsInput.tsx @@ -9,6 +9,7 @@ import DataError from "components/DataError"; // @ts-ignore import InputFieldWithIcon from "components/forms/fields/InputFieldWithIcon/InputFieldWithIcon"; import TableContainer from "components/TableContainer"; +import Spinner from "components/Spinner"; import { ITargestInputHostTableConfig } from "./TargetsInputHostsTableConfig"; interface ITargetsInputProps { @@ -70,32 +71,35 @@ const TargetsInput = ({ placeholder={placeholder} onChange={setSearchText} /> - {isActiveSearch && ( -
- Expecting to see hosts? Try again in a few seconds as the - system catches up. -
+ {isActiveSearch && + (isTargetsLoading ? ( ++ Expecting to see hosts? Try again in a few seconds as + the system catches up. +
+