mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
fix border/padding while loading jt edit form
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user