mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Adjust empty state for run script modal UI (#16436)
This commit is contained in:
parent
9e21e5a6d5
commit
afa5f054af
2 changed files with 8 additions and 2 deletions
|
|
@ -139,10 +139,10 @@ const RunScriptModal = ({
|
|||
<div className={`${baseClass}__modal-content`}>
|
||||
{isLoading && <Spinner />}
|
||||
{!isLoading && isError && <DataError />}
|
||||
{!isLoading && !isError && tableData && tableData.length === 0 && (
|
||||
{!isLoading && !isError && (!tableData || tableData.length === 0) && (
|
||||
<EmptyTable
|
||||
header="No scripts are available for this host"
|
||||
info="Expecting to see scripts? Try selecting “Refetch” to ask this host to report new vitals."
|
||||
info="Expecting to see scripts? Try selecting “Refetch” to ask the host to report new vitals."
|
||||
/>
|
||||
)}
|
||||
{!isLoading && !isError && tableData && tableData.length > 0 && (
|
||||
|
|
|
|||
|
|
@ -6,6 +6,12 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: $pad-xlarge;
|
||||
|
||||
.empty-table__container {
|
||||
max-width: none;
|
||||
margin: 0 0 20px 0;
|
||||
align-self: center;
|
||||
}
|
||||
}
|
||||
|
||||
.modal-cta-wrap {
|
||||
|
|
|
|||
Loading…
Reference in a new issue