@@ -75,6 +158,15 @@ function VariablesField({
name="ask_variables_on_launch"
/>
)}
+ {onExpand && (
+
+ )}
{
helpers.setValue(newVal);
}}
+ fullHeight={fullHeight}
hasErrors={!!meta.error}
/>
- {meta.error ? (
-
- {meta.error}
-
- ) : null}
);
}
-VariablesField.propTypes = {
- id: string.isRequired,
- name: string.isRequired,
- label: string.isRequired,
- readOnly: bool,
- promptId: string,
-};
-VariablesField.defaultProps = {
- readOnly: false,
- promptId: null,
-};
export default withI18n()(VariablesField);
diff --git a/awx/ui_next/src/components/DetailList/CodeDetail.jsx b/awx/ui_next/src/components/DetailList/CodeDetail.jsx
index 08c935b18e..90edb259e8 100644
--- a/awx/ui_next/src/components/DetailList/CodeDetail.jsx
+++ b/awx/ui_next/src/components/DetailList/CodeDetail.jsx
@@ -14,15 +14,7 @@ import { DetailName, DetailValue } from './Detail';
import CodeEditor from '../CodeEditor';
import Popover from '../Popover';
-function CodeDetail({
- value,
- label,
- mode,
- rows,
- fullHeight,
- helpText,
- dataCy,
-}) {
+function CodeDetail({ value, label, mode, rows, helpText, dataCy }) {
const labelCy = dataCy ? `${dataCy}-label` : null;
const valueCy = dataCy ? `${dataCy}-value` : null;
@@ -57,7 +49,6 @@ function CodeDetail({
value={value}
readOnly
rows={rows}
- fullHeight={fullHeight}
css="margin-top: 10px"
/>
@@ -69,7 +60,7 @@ CodeDetail.propTypes = {
label: node.isRequired,
dataCy: string,
helpText: string,
- rows: number,
+ rows: oneOfType(number, string),
mode: oneOf(['javascript', 'yaml', 'jinja2']).isRequired,
};
CodeDetail.defaultProps = {
diff --git a/awx/ui_next/src/screens/Host/HostFacts/HostFacts.jsx b/awx/ui_next/src/screens/Host/HostFacts/HostFacts.jsx
index f33c989f5b..08b447a991 100644
--- a/awx/ui_next/src/screens/Host/HostFacts/HostFacts.jsx
+++ b/awx/ui_next/src/screens/Host/HostFacts/HostFacts.jsx
@@ -36,7 +36,7 @@ function HostFacts({ i18n, host }) {
return (