mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 23:18:03 -03:30
fix border/padding while loading jt edit form
This commit is contained in:
parent
f57cf03f4b
commit
4f90406e91
@ -179,11 +179,19 @@ class JobTemplateEdit extends Component {
|
||||
const canEdit = template.summary_fields.user_capabilities.edit;
|
||||
|
||||
if (hasContentLoading) {
|
||||
return <ContentLoading />;
|
||||
return (
|
||||
<CardBody>
|
||||
<ContentLoading />
|
||||
</CardBody>
|
||||
);
|
||||
}
|
||||
|
||||
if (contentError) {
|
||||
return <ContentError error={contentError} />;
|
||||
return (
|
||||
<CardBody>
|
||||
<ContentError error={contentError} />
|
||||
</CardBody>
|
||||
);
|
||||
}
|
||||
|
||||
if (!canEdit) {
|
||||
|
||||
@ -8,6 +8,7 @@ import {
|
||||
Form,
|
||||
FormGroup,
|
||||
Card,
|
||||
CardBody,
|
||||
Switch,
|
||||
Checkbox,
|
||||
TextInput,
|
||||
@ -165,19 +166,11 @@ class JobTemplateForm extends Component {
|
||||
}
|
||||
|
||||
if (hasContentLoading) {
|
||||
return (
|
||||
<Card className="awx-c-card">
|
||||
<ContentLoading />
|
||||
</Card>
|
||||
);
|
||||
return <ContentLoading />;
|
||||
}
|
||||
|
||||
if (contentError) {
|
||||
return (
|
||||
<Card className="awx-c-card">
|
||||
<ContentError error={contentError} />
|
||||
</Card>
|
||||
);
|
||||
return <ContentError error={contentError} />;
|
||||
}
|
||||
const AdvancedFieldsWrapper = template.isNew ? CollapsibleSection : 'div';
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user