@openshift-assisted/ui-lib 2.10.6-cim → 2.10.7-cim
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditAgentModal.d.ts","sourceRoot":"","sources":["../../../../../lib/cim/components/modals/EditAgentModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"EditAgentModal.d.ts","sourceRoot":"","sources":["../../../../../lib/cim/components/modals/EditAgentModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAajD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -8,7 +8,10 @@ const EditAgentModal = (_a) => {
|
|
|
8
8
|
var _b;
|
|
9
9
|
var { agent, onSave } = _a, rest = tslib_1.__rest(_a, ["agent", "onSave"]);
|
|
10
10
|
const [host] = agent ? (0, toAssisted_1.getAIHosts)([agent]) : [];
|
|
11
|
-
return (React.createElement(EditHostModal_1.default, Object.assign({ host: host, inventory: (_b = agent === null || agent === void 0 ? void 0 : agent.status) === null || _b === void 0 ? void 0 : _b.inventory }, rest, { onSave: ({ hostname }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
11
|
+
return (React.createElement(EditHostModal_1.default, Object.assign({ host: host, inventory: (_b = agent === null || agent === void 0 ? void 0 : agent.status) === null || _b === void 0 ? void 0 : _b.inventory }, rest, { onSave: ({ hostname }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
12
|
+
agent && (yield onSave(agent, hostname));
|
|
13
|
+
rest.onClose();
|
|
14
|
+
}) })));
|
|
12
15
|
};
|
|
13
16
|
exports.default = EditAgentModal;
|
|
14
17
|
//# sourceMappingURL=EditAgentModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditAgentModal.js","sourceRoot":"","sources":["../../../../../lib/cim/components/modals/EditAgentModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,2GAA2E;AAE3E,sDAAmD;AAEnD,MAAM,cAAc,GAAkC,CAAC,EAA0B,EAAE,EAAE;;QAA9B,EAAE,KAAK,EAAE,MAAM,OAAW,EAAN,IAAI,sBAAxB,mBAA0B,CAAF;IAC7E,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,IAAA,uBAAU,EAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAChD,OAAO,CACL,oBAAC,uBAAa,kBACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,SAAS,IAC/B,IAAI,IACR,MAAM,EAAE,CAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"EditAgentModal.js","sourceRoot":"","sources":["../../../../../lib/cim/components/modals/EditAgentModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,2GAA2E;AAE3E,sDAAmD;AAEnD,MAAM,cAAc,GAAkC,CAAC,EAA0B,EAAE,EAAE;;QAA9B,EAAE,KAAK,EAAE,MAAM,OAAW,EAAN,IAAI,sBAAxB,mBAA0B,CAAF;IAC7E,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,IAAA,uBAAU,EAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAChD,OAAO,CACL,oBAAC,uBAAa,kBACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,SAAS,IAC/B,IAAI,IACR,MAAM,EAAE,CAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC7B,KAAK,IAAI,CAAC,MAAM,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;YACzC,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,CAAC,CAAA,IACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
|
@@ -10,7 +10,10 @@ const EditAgentModal: React.FC<EditAgentModalProps> = ({ agent, onSave, ...rest
|
|
|
10
10
|
host={host}
|
|
11
11
|
inventory={agent?.status?.inventory}
|
|
12
12
|
{...rest}
|
|
13
|
-
onSave={async ({ hostname }) =>
|
|
13
|
+
onSave={async ({ hostname }) => {
|
|
14
|
+
agent && (await onSave(agent, hostname));
|
|
15
|
+
rest.onClose();
|
|
16
|
+
}}
|
|
14
17
|
/>
|
|
15
18
|
);
|
|
16
19
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@openshift-assisted/locales": "2.10.
|
|
4
|
-
"@openshift-assisted/types": "2.10.
|
|
3
|
+
"@openshift-assisted/locales": "2.10.7-cim",
|
|
4
|
+
"@openshift-assisted/types": "2.10.7-cim",
|
|
5
5
|
"@openshift-console/dynamic-plugin-sdk": "0.0.3",
|
|
6
6
|
"@patternfly/patternfly": "^4.222.4",
|
|
7
7
|
"@patternfly/react-code-editor": "^4.82.113",
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
]
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
|
-
"version": "2.10.
|
|
144
|
+
"version": "2.10.7-cim"
|
|
145
145
|
}
|