mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
prettier
This commit is contained in:
@@ -21,7 +21,7 @@ function CredentialChip ({ credential, i18n, ...props }) {
|
|||||||
<strong>{type}: </strong>
|
<strong>{type}: </strong>
|
||||||
{credential.name}
|
{credential.name}
|
||||||
</Chip>
|
</Chip>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
CredentialChip.propTypes = {
|
CredentialChip.propTypes = {
|
||||||
credential: Credential.isRequired,
|
credential: Credential.isRequired,
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ const DetailValue = styled(({ fullWidth, ...props }) => (
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const Detail = ({ label, value, fullWidth }) => {
|
const Detail = ({ label, value, fullWidth }) => {
|
||||||
if (!value && typeof value !== 'number') { return null; }
|
if (!value && typeof value !== 'number') {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<DetailName component={TextListItemVariants.dt} fullWidth={fullWidth}>
|
<DetailName component={TextListItemVariants.dt} fullWidth={fullWidth}>
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ class JobListItem extends Component {
|
|||||||
onChange={onSelect}
|
onChange={onSelect}
|
||||||
aria-labelledby={`check-action-${job.id}`}
|
aria-labelledby={`check-action-${job.id}`}
|
||||||
/>
|
/>
|
||||||
<DataListItemCells dataListCells={[
|
<DataListItemCells
|
||||||
|
dataListCells={[
|
||||||
<DataListCell key="divider">
|
<DataListCell key="divider">
|
||||||
<VerticalSeparator />
|
<VerticalSeparator />
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
@@ -23,7 +23,9 @@ export function jsonToYaml(jsonString) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function isJson(jsonString) {
|
export function isJson(jsonString) {
|
||||||
if (typeof jsonString !== 'string') { return false; }
|
if (typeof jsonString !== 'string') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
let value;
|
let value;
|
||||||
try {
|
try {
|
||||||
value = JSON.parse(jsonString);
|
value = JSON.parse(jsonString);
|
||||||
|
|||||||
Reference in New Issue
Block a user