Adjust empty state for run script modal UI (#16436)

This commit is contained in:
Sarah Gillespie 2024-01-31 10:20:40 -06:00 committed by GitHub
parent 9e21e5a6d5
commit afa5f054af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -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 && (

View file

@ -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 {