mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Fix bug with credential plugin code editor width
This commit is contained in:
@@ -23,7 +23,7 @@ import { Credential } from '../../../types';
|
|||||||
import useRequest, { useDismissableError } from '../../../util/useRequest';
|
import useRequest, { useDismissableError } from '../../../util/useRequest';
|
||||||
import { relatedResourceDeleteRequests } from '../../../util/getRelatedResourceDeleteDetails';
|
import { relatedResourceDeleteRequests } from '../../../util/getRelatedResourceDeleteDetails';
|
||||||
|
|
||||||
const PluginInputMetadata = styled(CodeEditor)`
|
const PluginInputMetadata = styled.div`
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -117,16 +117,18 @@ function CredentialDetail({ credential }) {
|
|||||||
</ChipGroup>
|
</ChipGroup>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<PluginInputMetadata
|
<PluginInputMetadata>
|
||||||
dataCy={`credential-${id}-detail`}
|
<CodeEditor
|
||||||
id={`credential-${id}-metadata`}
|
dataCy={`credential-${id}-detail`}
|
||||||
mode="javascript"
|
id={`credential-${id}-metadata`}
|
||||||
readOnly
|
mode="javascript"
|
||||||
value={JSON.stringify(inputSources[id].metadata, null, 2)}
|
readOnly
|
||||||
onChange={() => {}}
|
value={JSON.stringify(inputSources[id].metadata, null, 2)}
|
||||||
rows={5}
|
onChange={() => {}}
|
||||||
hasErrors={false}
|
rows={5}
|
||||||
/>
|
hasErrors={false}
|
||||||
|
/>
|
||||||
|
</PluginInputMetadata>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user