mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Move loading spinner inside output panel
This commit is contained in:
@@ -705,10 +705,6 @@ function JobOutput({
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
if (hasContentLoading) {
|
|
||||||
return <ContentLoading />;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (contentError) {
|
if (contentError) {
|
||||||
return <ContentError error={contentError} />;
|
return <ContentError error={contentError} />;
|
||||||
}
|
}
|
||||||
@@ -779,6 +775,12 @@ function JobOutput({
|
|||||||
<AutoSizer nonce={window.NONCE_ID} onResize={handleResize}>
|
<AutoSizer nonce={window.NONCE_ID} onResize={handleResize}>
|
||||||
{({ width, height }) => {
|
{({ width, height }) => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
{hasContentLoading ? (
|
||||||
|
<div style={{ width }}>
|
||||||
|
<ContentLoading />
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
<List
|
<List
|
||||||
ref={ref => {
|
ref={ref => {
|
||||||
registerChild(ref);
|
registerChild(ref);
|
||||||
@@ -794,6 +796,8 @@ function JobOutput({
|
|||||||
width={width || 1}
|
width={width || 1}
|
||||||
overscanRowCount={20}
|
overscanRowCount={20}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
</AutoSizer>
|
</AutoSizer>
|
||||||
|
|||||||
Reference in New Issue
Block a user