@cobaltcore-dev/aurora 0.10.0 → 0.12.0
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.
- package/README.md +2 -1
- package/dist/client/AuroraApp.d.ts +2 -0
- package/dist/client/AuthProvider-DZqOvceF.mjs +64 -0
- package/dist/client/AuthProvider-DZqOvceF.mjs.map +1 -0
- package/dist/client/ContentHeader-D2nIdJKJ.mjs +110 -0
- package/dist/client/ContentHeader-D2nIdJKJ.mjs.map +1 -0
- package/dist/client/{DeleteFlavorModal-C3m7bQJu.mjs → DeleteFlavorModal-Dwm0Hh84.mjs} +158 -158
- package/dist/client/{DeleteFlavorModal-C3m7bQJu.mjs.map → DeleteFlavorModal-Dwm0Hh84.mjs.map} +1 -1
- package/dist/client/{DeleteVersionsModal-CyYZfB8d.mjs → DeleteVersionsModal-DQO8lGmS.mjs} +58 -58
- package/dist/client/{DeleteVersionsModal-CyYZfB8d.mjs.map → DeleteVersionsModal-DQO8lGmS.mjs.map} +1 -1
- package/dist/client/{EditSecurityGroupModal-DKusxfta.mjs → EditSecurityGroupModal-BGPXglju.mjs} +16 -16
- package/dist/client/{EditSecurityGroupModal-DKusxfta.mjs.map → EditSecurityGroupModal-BGPXglju.mjs.map} +1 -1
- package/dist/client/{FiltersInput-GzR4D0q6.mjs → FiltersInput-cOaaRpcQ.mjs} +20 -20
- package/dist/client/{FiltersInput-GzR4D0q6.mjs.map → FiltersInput-cOaaRpcQ.mjs.map} +1 -1
- package/dist/client/{FloatingIpActionModals-CRvROJ3H.mjs → FloatingIpActionModals-RCvaamOg.mjs} +51 -51
- package/dist/client/{FloatingIpActionModals-CRvROJ3H.mjs.map → FloatingIpActionModals-RCvaamOg.mjs.map} +1 -1
- package/dist/client/{ImageToastNotifications-BuDXpTkl.mjs → ImageToastNotifications-ClO-1yOH.mjs} +341 -341
- package/dist/client/{ImageToastNotifications-BuDXpTkl.mjs.map → ImageToastNotifications-ClO-1yOH.mjs.map} +1 -1
- package/dist/client/{RouteError-DVAiT0mT.mjs → RouteError-BmZRk_ss.mjs} +2 -2
- package/dist/client/{RouteError-DVAiT0mT.mjs.map → RouteError-BmZRk_ss.mjs.map} +1 -1
- package/dist/client/{SortInput-DLcusjGZ.mjs → SortInput-DjaEHvcO.mjs} +6 -6
- package/dist/client/{SortInput-DLcusjGZ.mjs.map → SortInput-DjaEHvcO.mjs.map} +1 -1
- package/dist/client/{_auth-DXJkv9QO.mjs → _auth-DnImOqR-.mjs} +2 -2
- package/dist/client/_auth-DnImOqR-.mjs.map +1 -0
- package/dist/client/{_flavorId-Dy7EYQum.mjs → _flavorId-CtQEd28h.mjs} +9 -9
- package/dist/client/{_flavorId-Dy7EYQum.mjs.map → _flavorId-CtQEd28h.mjs.map} +1 -1
- package/dist/client/{_flavorId-DsD2VTKA.mjs → _flavorId-DVsGdXUf.mjs} +42 -42
- package/dist/client/{_flavorId-DsD2VTKA.mjs.map → _flavorId-DVsGdXUf.mjs.map} +1 -1
- package/dist/client/{_floatingIpId-j17rCQqG2.mjs → _floatingIpId-CKMq7-4p2.mjs} +32 -32
- package/dist/client/{_floatingIpId-j17rCQqG2.mjs.map → _floatingIpId-CKMq7-4p2.mjs.map} +1 -1
- package/dist/client/{_floatingIpId-BjVbeNw_.mjs → _floatingIpId-DvTh6vdB.mjs} +2 -2
- package/dist/client/{_floatingIpId-BjVbeNw_.mjs.map → _floatingIpId-DvTh6vdB.mjs.map} +1 -1
- package/dist/client/{_imageId-BjfhqAje.mjs → _imageId-xG8hC49j.mjs} +129 -129
- package/dist/client/_imageId-xG8hC49j.mjs.map +1 -0
- package/dist/client/{_pcaId-Bo7yHkNW.mjs → _pcaId-Db_t0x6O.mjs} +149 -149
- package/dist/client/{_pcaId-Bo7yHkNW.mjs.map → _pcaId-Db_t0x6O.mjs.map} +1 -1
- package/dist/client/{_pcaId-CKkCVC7b.mjs → _pcaId-WCJoukIk.mjs} +2 -2
- package/dist/client/{_pcaId-CKkCVC7b.mjs.map → _pcaId-WCJoukIk.mjs.map} +1 -1
- package/dist/client/{_projectId-B_2sZKk-.mjs → _projectId-B2cvskLV.mjs} +2 -2
- package/dist/client/_projectId-B2cvskLV.mjs.map +1 -0
- package/dist/client/{_projectId-Dbck_MFa.mjs → _projectId-BCMkaH_h.mjs} +85 -85
- package/dist/client/_projectId-BCMkaH_h.mjs.map +1 -0
- package/dist/client/{_projectId-CARHuZTU.mjs → _projectId-BdqRntcN.mjs} +15 -14
- package/dist/client/_projectId-BdqRntcN.mjs.map +1 -0
- package/dist/client/{_projectId-CY8W0IF6.mjs → _projectId-C8RGOqZb.mjs} +3 -3
- package/dist/client/{_projectId-CY8W0IF6.mjs.map → _projectId-C8RGOqZb.mjs.map} +1 -1
- package/dist/client/{_securityGroupId-gSEZbBII.mjs → _securityGroupId-CyQ3XmpB.mjs} +2 -2
- package/dist/client/{_securityGroupId-gSEZbBII.mjs.map → _securityGroupId-CyQ3XmpB.mjs.map} +1 -1
- package/dist/client/{_securityGroupId-CkN0CGVg.mjs → _securityGroupId-DMi7YRux.mjs} +352 -352
- package/dist/client/{_securityGroupId-CkN0CGVg.mjs.map → _securityGroupId-DMi7YRux.mjs.map} +1 -1
- package/dist/client/_storageType-Bb6YZgXf.mjs +3002 -0
- package/dist/client/_storageType-Bb6YZgXf.mjs.map +1 -0
- package/dist/client/{_storageType-6k8lUnQo.mjs → _storageType-g1zkFFRh.mjs} +2 -2
- package/dist/client/{_storageType-6k8lUnQo.mjs.map → _storageType-g1zkFFRh.mjs.map} +1 -1
- package/dist/client/_storageType-zeSZe--V.mjs.map +1 -1
- package/dist/client/{about-Nsxkyh9U.mjs → about-B4sGnxeW.mjs} +8 -8
- package/dist/client/about-B4sGnxeW.mjs.map +1 -0
- package/dist/client/{aurora-DDzsst74.mjs → aurora-6RsAZtnz.mjs} +2 -2
- package/dist/client/aurora-6RsAZtnz.mjs.map +1 -0
- package/dist/client/{build-BdRRmNf5.mjs → build-DgeVmENN.mjs} +3632 -3159
- package/dist/client/{build-BdRRmNf5.mjs.map → build-DgeVmENN.mjs.map} +1 -1
- package/dist/client/{constants-PMXUGI4Q.mjs → constants-D6IO9bPs.mjs} +17 -17
- package/dist/client/{constants-PMXUGI4Q.mjs.map → constants-D6IO9bPs.mjs.map} +1 -1
- package/dist/client/{flavors-p2TKcqP-.mjs → flavors-CO5l_6d0.mjs} +164 -164
- package/dist/client/{flavors-p2TKcqP-.mjs.map → flavors-CO5l_6d0.mjs.map} +1 -1
- package/dist/client/{flavors-BclEwobO.mjs → flavors-D4nGSs0r.mjs} +2 -2
- package/dist/client/{flavors-BclEwobO.mjs.map → flavors-D4nGSs0r.mjs.map} +1 -1
- package/dist/client/flavors-DWMZ6TuJ.mjs.map +1 -1
- package/dist/client/{floatingips-ph0ZxJw8.mjs → floatingips-ClkRV7a7.mjs} +115 -115
- package/dist/client/floatingips-ClkRV7a7.mjs.map +1 -0
- package/dist/client/{hooks-dSArr2Ca.mjs → hooks-CMgoYcDG.mjs} +1 -1
- package/dist/client/{images-Dbjo4yKn.mjs → images-B5ktfqg6.mjs} +2 -2
- package/dist/client/images-B5ktfqg6.mjs.map +1 -0
- package/dist/client/{images-BblnyWJq.mjs → images-C_OYLPqv.mjs} +425 -425
- package/dist/client/{images-BblnyWJq.mjs.map → images-C_OYLPqv.mjs.map} +1 -1
- package/dist/client/{images-CXdghaMW.mjs → images-CvPxoPC0.mjs} +2 -2
- package/dist/client/{images-CXdghaMW.mjs.map → images-CvPxoPC0.mjs.map} +1 -1
- package/dist/client/images-NBf2bV43.mjs.map +1 -1
- package/dist/client/index.js +337 -337
- package/dist/client/index.js.map +1 -1
- package/dist/client/network-DuZm76BZ.mjs.map +1 -1
- package/dist/client/{objects-Bw25cE1m.mjs → objects-D0grS6pk.mjs} +1645 -1617
- package/dist/client/objects-D0grS6pk.mjs.map +1 -0
- package/dist/client/{objects-B9Jh3SMG.mjs → objects-UQyUQxBj.mjs} +2 -2
- package/dist/client/{objects-B9Jh3SMG.mjs.map → objects-UQyUQxBj.mjs.map} +1 -1
- package/dist/client/objects-o2Cj_ndZ.mjs.map +1 -1
- package/dist/client/{pca-CiLPHmK7.mjs → pca-BJPxOIgq.mjs} +68 -68
- package/dist/client/{pca-CiLPHmK7.mjs.map → pca-BJPxOIgq.mjs.map} +1 -1
- package/dist/client/{pca-DUrQ_tIg.mjs → pca-C9MKOi3Z.mjs} +2 -2
- package/dist/client/{pca-DUrQ_tIg.mjs.map → pca-C9MKOi3Z.mjs.map} +1 -1
- package/dist/client/{projects-DNd3UTas.mjs → projects-C3wR-lvM.mjs} +6 -9
- package/dist/client/projects-C3wR-lvM.mjs.map +1 -0
- package/dist/client/{projects-B5topuei.mjs → projects-CGjBlG2w.mjs} +2 -2
- package/dist/client/{projects-B5topuei.mjs.map → projects-CGjBlG2w.mjs.map} +1 -1
- package/dist/client/{projects-CHYn7L5e.mjs → projects-DvSiI5Vg.mjs} +2 -2
- package/dist/client/projects-DvSiI5Vg.mjs.map +1 -0
- package/dist/client/{securitygroups-CcA2TpAt.mjs → securitygroups-n8ujBpJP.mjs} +119 -119
- package/dist/client/securitygroups-n8ujBpJP.mjs.map +1 -0
- package/dist/client/{useListWithFiltering-CVzhMyEA.mjs → useListWithFiltering-BuhE81I6.mjs} +12 -12
- package/dist/client/{useListWithFiltering-CVzhMyEA.mjs.map → useListWithFiltering-BuhE81I6.mjs.map} +1 -1
- package/dist/server/index.d.ts +6 -2
- package/dist/server/index.js +701 -423
- package/package.json +4 -4
- package/dist/client/AuthProvider-Co4d0WzB.mjs +0 -100
- package/dist/client/AuthProvider-Co4d0WzB.mjs.map +0 -1
- package/dist/client/ContentHeader-D4jlOG-9.mjs +0 -96
- package/dist/client/ContentHeader-D4jlOG-9.mjs.map +0 -1
- package/dist/client/_auth-DXJkv9QO.mjs.map +0 -1
- package/dist/client/_imageId-BjfhqAje.mjs.map +0 -1
- package/dist/client/_projectId-B_2sZKk-.mjs.map +0 -1
- package/dist/client/_projectId-CARHuZTU.mjs.map +0 -1
- package/dist/client/_projectId-Dbck_MFa.mjs.map +0 -1
- package/dist/client/_storageType-CLTxXjQZ.mjs +0 -3048
- package/dist/client/_storageType-CLTxXjQZ.mjs.map +0 -1
- package/dist/client/about-Nsxkyh9U.mjs.map +0 -1
- package/dist/client/aurora-DDzsst74.mjs.map +0 -1
- package/dist/client/floatingips-ph0ZxJw8.mjs.map +0 -1
- package/dist/client/images-Dbjo4yKn.mjs.map +0 -1
- package/dist/client/objects-Bw25cE1m.mjs.map +0 -1
- package/dist/client/projects-CHYn7L5e.mjs.map +0 -1
- package/dist/client/projects-DNd3UTas.mjs.map +0 -1
- package/dist/client/securitygroups-CcA2TpAt.mjs.map +0 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as e, E as t, G as n, K as r, P as i, R as a, U as o, g as s, r as c, tt as l, ut as u, y as d } from "./build-DgeVmENN.mjs";
|
|
2
2
|
import { t as f } from "./useErrorTranslation-Dc0eE8Zt.mjs";
|
|
3
3
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
4
4
|
import g, { Suspense as _, startTransition as v, use as y, useEffect as b, useMemo as x, useState as S } from "react";
|
|
5
5
|
import { Trans as C, useLingui as w } from "@lingui/react";
|
|
6
6
|
import { ErrorBoundary as T } from "react-error-boundary";
|
|
7
7
|
//#region src/client/routes/_auth/projects/$projectId/compute/-components/Flavors/-components/SpecFormRow.tsx
|
|
8
|
-
var E = ({ specKey:
|
|
8
|
+
var E = ({ specKey: e, value: r, errors: i, isLoading: a, onKeyChange: s, onValueChange: c, onSave: l, onCancel: f }) => {
|
|
9
9
|
let { i18n: p, _: g } = w();
|
|
10
|
-
return /*#__PURE__*/ h(
|
|
11
|
-
/*#__PURE__*/ m(
|
|
10
|
+
return /*#__PURE__*/ h(t, { children: [
|
|
11
|
+
/*#__PURE__*/ m(n, {
|
|
12
12
|
className: "pl-0",
|
|
13
|
-
children: /*#__PURE__*/ m(
|
|
14
|
-
value:
|
|
13
|
+
children: /*#__PURE__*/ m(o, {
|
|
14
|
+
value: e,
|
|
15
15
|
onChange: (e) => s(e.target.value),
|
|
16
16
|
placeholder: p._({ id: "wPrtGF" }),
|
|
17
|
-
errortext:
|
|
17
|
+
errortext: i.key,
|
|
18
18
|
required: !0
|
|
19
19
|
})
|
|
20
20
|
}),
|
|
21
|
-
/*#__PURE__*/ m(
|
|
21
|
+
/*#__PURE__*/ m(n, {
|
|
22
22
|
className: "pl-0",
|
|
23
|
-
children: /*#__PURE__*/ m(
|
|
24
|
-
value:
|
|
23
|
+
children: /*#__PURE__*/ m(o, {
|
|
24
|
+
value: r,
|
|
25
25
|
onChange: (e) => c(e.target.value),
|
|
26
26
|
placeholder: p._({ id: "pubQie" }),
|
|
27
|
-
errortext:
|
|
27
|
+
errortext: i.value,
|
|
28
28
|
required: !0
|
|
29
29
|
})
|
|
30
30
|
}),
|
|
31
|
-
/*#__PURE__*/ m(
|
|
31
|
+
/*#__PURE__*/ m(n, { children: /*#__PURE__*/ h(u, { children: [/*#__PURE__*/ m(d, {
|
|
32
32
|
icon: "check",
|
|
33
33
|
onClick: l,
|
|
34
34
|
variant: "primary",
|
|
35
35
|
title: p._({ id: "TyODHt" }),
|
|
36
36
|
disabled: a
|
|
37
|
-
}), /*#__PURE__*/ m(
|
|
37
|
+
}), /*#__PURE__*/ m(d, {
|
|
38
38
|
icon: "cancel",
|
|
39
39
|
onClick: f,
|
|
40
40
|
title: p._({ id: "dEgA5A" }),
|
|
41
41
|
disabled: a
|
|
42
42
|
})] }) })
|
|
43
43
|
] });
|
|
44
|
-
}, D = ({ specKey:
|
|
45
|
-
let { i18n:
|
|
44
|
+
}, D = ({ specKey: e, value: i, isDeleting: a, onDelete: o, canDelete: s }) => {
|
|
45
|
+
let { i18n: c, _: u } = w(), [f, g] = S(!1);
|
|
46
46
|
return b(() => {
|
|
47
47
|
if (f) {
|
|
48
48
|
let e = setTimeout(() => {
|
|
@@ -50,42 +50,42 @@ var E = ({ specKey: t, value: n, errors: r, isLoading: a, onKeyChange: s, onValu
|
|
|
50
50
|
}, 3e3);
|
|
51
51
|
return () => clearTimeout(e);
|
|
52
52
|
}
|
|
53
|
-
}, [f]), /*#__PURE__*/ h(
|
|
54
|
-
/*#__PURE__*/ m(
|
|
55
|
-
/*#__PURE__*/ m(
|
|
53
|
+
}, [f]), /*#__PURE__*/ h(t, { children: [
|
|
54
|
+
/*#__PURE__*/ m(n, { children: e }),
|
|
55
|
+
/*#__PURE__*/ m(n, {
|
|
56
56
|
className: "break-all",
|
|
57
|
-
children:
|
|
57
|
+
children: i
|
|
58
58
|
}),
|
|
59
|
-
/*#__PURE__*/ m(
|
|
59
|
+
/*#__PURE__*/ m(n, { children: a ? /*#__PURE__*/ m(l, {
|
|
60
60
|
distribution: "center",
|
|
61
61
|
alignment: "center",
|
|
62
|
-
children: /*#__PURE__*/ m(
|
|
63
|
-
}) : /*#__PURE__*/ m(
|
|
62
|
+
children: /*#__PURE__*/ m(r, { variant: "primary" })
|
|
63
|
+
}) : /*#__PURE__*/ m(l, {
|
|
64
64
|
distribution: "end",
|
|
65
65
|
alignment: "end",
|
|
66
|
-
children:
|
|
66
|
+
children: s ? f ? /*#__PURE__*/ m(d, {
|
|
67
67
|
variant: "primary-danger",
|
|
68
68
|
onClick: () => {
|
|
69
|
-
g(!1),
|
|
69
|
+
g(!1), o();
|
|
70
70
|
},
|
|
71
|
-
title:
|
|
72
|
-
"aria-label":
|
|
71
|
+
title: c._({ id: "cnGeoo" }),
|
|
72
|
+
"aria-label": c._({ id: "cnGeoo" }),
|
|
73
73
|
"data-testid": "confirm-deletion",
|
|
74
|
-
disabled:
|
|
75
|
-
children:
|
|
76
|
-
}) : /*#__PURE__*/ m(
|
|
74
|
+
disabled: a,
|
|
75
|
+
children: c._({ id: "cnGeoo" })
|
|
76
|
+
}) : /*#__PURE__*/ m(d, {
|
|
77
77
|
icon: "deleteForever",
|
|
78
78
|
onClick: () => g(!0),
|
|
79
|
-
title:
|
|
79
|
+
title: c._({
|
|
80
80
|
id: "2G6hLq",
|
|
81
|
-
values: { specKey:
|
|
81
|
+
values: { specKey: e }
|
|
82
82
|
}),
|
|
83
|
-
"aria-label":
|
|
83
|
+
"aria-label": c._({
|
|
84
84
|
id: "2G6hLq",
|
|
85
|
-
values: { specKey:
|
|
85
|
+
values: { specKey: e }
|
|
86
86
|
}),
|
|
87
|
-
"data-testid": `delete-${
|
|
88
|
-
disabled:
|
|
87
|
+
"data-testid": `delete-${e}`,
|
|
88
|
+
disabled: a
|
|
89
89
|
}) : /*#__PURE__*/ m(p, {})
|
|
90
90
|
}) })
|
|
91
91
|
] });
|
|
@@ -100,24 +100,24 @@ var E = ({ specKey: t, value: n, errors: r, isLoading: a, onKeyChange: s, onValu
|
|
|
100
100
|
flavorId: n
|
|
101
101
|
});
|
|
102
102
|
function A() {
|
|
103
|
-
return /*#__PURE__*/ m(
|
|
103
|
+
return /*#__PURE__*/ m(t, { children: /*#__PURE__*/ m(n, {
|
|
104
104
|
colSpan: 3,
|
|
105
|
-
children: /*#__PURE__*/ m(
|
|
105
|
+
children: /*#__PURE__*/ m(l, {
|
|
106
106
|
distribution: "center",
|
|
107
107
|
alignment: "center",
|
|
108
|
-
children: /*#__PURE__*/ m(
|
|
108
|
+
children: /*#__PURE__*/ m(r, { variant: "primary" })
|
|
109
109
|
})
|
|
110
110
|
}) });
|
|
111
111
|
}
|
|
112
|
-
function j({ error:
|
|
113
|
-
let { i18n:
|
|
114
|
-
return /*#__PURE__*/ m(
|
|
112
|
+
function j({ error: t }) {
|
|
113
|
+
let { i18n: n, _: r } = w(), { translateError: i } = f();
|
|
114
|
+
return /*#__PURE__*/ m(e, {
|
|
115
115
|
variant: "error",
|
|
116
|
-
text:
|
|
116
|
+
text: t instanceof Error ? i(t.message) : n._({ id: "W5A0Ly" })
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
function M({ permissionsPromise:
|
|
120
|
-
let { i18n: b, _: x } = w(), { translateError: C } = f(), T = y(
|
|
119
|
+
function M({ permissionsPromise: e, extraSpecsPromise: r, client: o, project: s, flavor: c, onSpecsUpdate: u, isAddingSpec: g, setIsAddingSpec: _, setMessage: v }) {
|
|
120
|
+
let { i18n: b, _: x } = w(), { translateError: C } = f(), T = y(e), [O, k] = S(y(r)), [A, j] = S(""), [M, N] = S(""), [P, F] = S({}), [I, L] = S(null), R = () => {
|
|
121
121
|
let e = A.trim(), t = M.trim(), n = {};
|
|
122
122
|
return e ? Object.keys(O).includes(e) && (n.key = "Key already exists.") : n.key = "Key is required.", t || (n.value = "Value is required."), F(n), Object.keys(n).length === 0;
|
|
123
123
|
}, z = () => {
|
|
@@ -132,16 +132,16 @@ function M({ permissionsPromise: t, extraSpecsPromise: n, client: s, project: l,
|
|
|
132
132
|
}
|
|
133
133
|
try {
|
|
134
134
|
let e = A.trim(), t = M.trim();
|
|
135
|
-
await
|
|
136
|
-
project_id:
|
|
137
|
-
flavorId:
|
|
135
|
+
await o.compute.createExtraSpecs.mutate({
|
|
136
|
+
project_id: s,
|
|
137
|
+
flavorId: c.id,
|
|
138
138
|
extra_specs: { [e]: t }
|
|
139
139
|
});
|
|
140
140
|
let n = {
|
|
141
141
|
[e]: t,
|
|
142
142
|
...O
|
|
143
143
|
};
|
|
144
|
-
k(n),
|
|
144
|
+
k(n), u(n), v({
|
|
145
145
|
text: b._({
|
|
146
146
|
id: "2mbisJ",
|
|
147
147
|
values: { trimmedKey: e }
|
|
@@ -156,13 +156,13 @@ function M({ permissionsPromise: t, extraSpecsPromise: n, client: s, project: l,
|
|
|
156
156
|
}
|
|
157
157
|
}, V = async (e) => {
|
|
158
158
|
try {
|
|
159
|
-
L(e), await
|
|
160
|
-
project_id:
|
|
161
|
-
flavorId:
|
|
159
|
+
L(e), await o.compute.deleteExtraSpec.mutate({
|
|
160
|
+
project_id: s,
|
|
161
|
+
flavorId: c.id,
|
|
162
162
|
key: e
|
|
163
163
|
});
|
|
164
164
|
let t = { ...O };
|
|
165
|
-
delete t[e], k(t),
|
|
165
|
+
delete t[e], k(t), u(t), v({
|
|
166
166
|
text: b._({
|
|
167
167
|
id: "7UlHhT",
|
|
168
168
|
values: { keyToDelete: e }
|
|
@@ -188,23 +188,23 @@ function M({ permissionsPromise: t, extraSpecsPromise: n, client: s, project: l,
|
|
|
188
188
|
value: void 0
|
|
189
189
|
}));
|
|
190
190
|
}, W = Object.keys(O).length === 0 && !g;
|
|
191
|
-
return /*#__PURE__*/ h(p, { children: [T.canCreate && /*#__PURE__*/ m(
|
|
191
|
+
return /*#__PURE__*/ h(p, { children: [T.canCreate && /*#__PURE__*/ m(l, {
|
|
192
192
|
direction: "horizontal",
|
|
193
193
|
className: "bg-theme-background-lvl-1 justify-end p-2",
|
|
194
|
-
children: /*#__PURE__*/ m(
|
|
194
|
+
children: /*#__PURE__*/ m(d, {
|
|
195
195
|
label: b._({ id: "u7En0V" }),
|
|
196
196
|
"data-testid": "addExtraButton",
|
|
197
197
|
onClick: () => _(!0),
|
|
198
198
|
variant: "primary",
|
|
199
199
|
disabled: g
|
|
200
200
|
})
|
|
201
|
-
}), /*#__PURE__*/ h(
|
|
201
|
+
}), /*#__PURE__*/ h(i, {
|
|
202
202
|
columns: 3,
|
|
203
203
|
children: [
|
|
204
|
-
/*#__PURE__*/ h(
|
|
205
|
-
/*#__PURE__*/ m(
|
|
206
|
-
/*#__PURE__*/ m(
|
|
207
|
-
/*#__PURE__*/ m(
|
|
204
|
+
/*#__PURE__*/ h(t, { children: [
|
|
205
|
+
/*#__PURE__*/ m(a, { children: b._({ id: "7sMeHQ" }) }),
|
|
206
|
+
/*#__PURE__*/ m(a, { children: b._({ id: "wMHvYH" }) }),
|
|
207
|
+
/*#__PURE__*/ m(a, {})
|
|
208
208
|
] }),
|
|
209
209
|
g && /*#__PURE__*/ m(E, {
|
|
210
210
|
specKey: A,
|
|
@@ -225,7 +225,7 @@ function M({ permissionsPromise: t, extraSpecsPromise: n, client: s, project: l,
|
|
|
225
225
|
onDelete: () => V(e),
|
|
226
226
|
canDelete: T.canDelete
|
|
227
227
|
}, e)),
|
|
228
|
-
W && /*#__PURE__*/ m(
|
|
228
|
+
W && /*#__PURE__*/ m(t, { children: /*#__PURE__*/ m(n, {
|
|
229
229
|
colSpan: 3,
|
|
230
230
|
className: "text-theme-default py-4 text-center",
|
|
231
231
|
children: b._({ id: "S3olSf" })
|
|
@@ -233,14 +233,14 @@ function M({ permissionsPromise: t, extraSpecsPromise: n, client: s, project: l,
|
|
|
233
233
|
]
|
|
234
234
|
})] });
|
|
235
235
|
}
|
|
236
|
-
var N = ({ client:
|
|
237
|
-
let { i18n:
|
|
236
|
+
var N = ({ client: t, isOpen: n, onClose: r, project: i, flavor: a, canEdit: o }) => {
|
|
237
|
+
let { i18n: s, _: l } = w(), [u, d] = S(null), [f, p] = S(!1), [y, b] = S(null), [x, C] = S(o), E = g.useMemo(() => n ? o === void 0 ? O(t, i) : Promise.resolve({
|
|
238
238
|
canCreate: o,
|
|
239
239
|
canDelete: o
|
|
240
240
|
}) : null, [
|
|
241
|
-
e,
|
|
242
|
-
i,
|
|
243
241
|
t,
|
|
242
|
+
i,
|
|
243
|
+
n,
|
|
244
244
|
o
|
|
245
245
|
]);
|
|
246
246
|
g.useEffect(() => {
|
|
@@ -250,24 +250,24 @@ var N = ({ client: e, isOpen: t, onClose: r, project: i, flavor: a, canEdit: o }
|
|
|
250
250
|
}
|
|
251
251
|
E?.then(({ canCreate: e, canDelete: t }) => C(e || t));
|
|
252
252
|
}, [E, o]);
|
|
253
|
-
let D = x ?
|
|
253
|
+
let D = x ? s._({ id: "SIfYq6" }) : s._({ id: "6GBt0m" });
|
|
254
254
|
return g.useEffect(() => {
|
|
255
|
-
|
|
256
|
-
b(k(
|
|
255
|
+
n && a?.id && v(() => {
|
|
256
|
+
b(k(t, i, a.id));
|
|
257
257
|
});
|
|
258
258
|
}, [
|
|
259
|
-
|
|
259
|
+
n,
|
|
260
260
|
a?.id,
|
|
261
|
-
|
|
261
|
+
t,
|
|
262
262
|
i
|
|
263
|
-
]), !
|
|
263
|
+
]), !n || !a || !E || !y ? null : /*#__PURE__*/ m(c, {
|
|
264
264
|
onCancel: () => {
|
|
265
265
|
d(null), p(!1), b(null), r();
|
|
266
266
|
},
|
|
267
267
|
title: D,
|
|
268
|
-
open:
|
|
268
|
+
open: n,
|
|
269
269
|
size: "xl",
|
|
270
|
-
children: /*#__PURE__*/ h("div", { children: [u && /*#__PURE__*/ m(
|
|
270
|
+
children: /*#__PURE__*/ h("div", { children: [u && /*#__PURE__*/ m(e, {
|
|
271
271
|
onDismiss: () => d(null),
|
|
272
272
|
text: u.text,
|
|
273
273
|
variant: u.type,
|
|
@@ -279,7 +279,7 @@ var N = ({ client: e, isOpen: t, onClose: r, project: i, flavor: a, canEdit: o }
|
|
|
279
279
|
children: /*#__PURE__*/ m(M, {
|
|
280
280
|
permissionsPromise: E,
|
|
281
281
|
extraSpecsPromise: y,
|
|
282
|
-
client:
|
|
282
|
+
client: t,
|
|
283
283
|
project: i,
|
|
284
284
|
flavor: a,
|
|
285
285
|
onSpecsUpdate: (e) => {
|
|
@@ -295,78 +295,78 @@ var N = ({ client: e, isOpen: t, onClose: r, project: i, flavor: a, canEdit: o }
|
|
|
295
295
|
})
|
|
296
296
|
})] })
|
|
297
297
|
});
|
|
298
|
-
}, P = ({ tenantId:
|
|
298
|
+
}, P = ({ tenantId: e, errors: r, isLoading: i, onTenantIdChange: a, onSave: s, onCancel: c }) => {
|
|
299
299
|
let { i18n: l, _: f } = w();
|
|
300
|
-
return /*#__PURE__*/ h(
|
|
300
|
+
return /*#__PURE__*/ h(t, { children: [/*#__PURE__*/ m(n, {
|
|
301
301
|
className: "pl-0",
|
|
302
|
-
children: /*#__PURE__*/ m(
|
|
303
|
-
value:
|
|
302
|
+
children: /*#__PURE__*/ m(o, {
|
|
303
|
+
value: e,
|
|
304
304
|
onChange: (e) => a(e.target.value),
|
|
305
305
|
placeholder: l._({ id: "wa1Bcq" }),
|
|
306
|
-
errortext:
|
|
306
|
+
errortext: r.tenantId,
|
|
307
307
|
required: !0
|
|
308
308
|
})
|
|
309
|
-
}), /*#__PURE__*/ m(
|
|
309
|
+
}), /*#__PURE__*/ m(n, { children: /*#__PURE__*/ h(u, { children: [/*#__PURE__*/ m(d, {
|
|
310
310
|
icon: "check",
|
|
311
311
|
onClick: s,
|
|
312
312
|
variant: "primary",
|
|
313
313
|
title: l._({ id: "q0Rla3" }),
|
|
314
|
-
disabled:
|
|
315
|
-
}), /*#__PURE__*/ m(
|
|
314
|
+
disabled: i
|
|
315
|
+
}), /*#__PURE__*/ m(d, {
|
|
316
316
|
icon: "cancel",
|
|
317
317
|
onClick: c,
|
|
318
318
|
title: l._({ id: "dEgA5A" }),
|
|
319
|
-
disabled:
|
|
319
|
+
disabled: i
|
|
320
320
|
})] }) })] });
|
|
321
|
-
}, F = ({ access:
|
|
322
|
-
let { i18n:
|
|
321
|
+
}, F = ({ access: e, isDeleting: i, onDelete: a, canDelete: o }) => {
|
|
322
|
+
let { i18n: s, _: c } = w(), [u, f] = S(!1);
|
|
323
323
|
b(() => {
|
|
324
|
-
if (
|
|
324
|
+
if (u) {
|
|
325
325
|
let e = setTimeout(() => {
|
|
326
326
|
f(!1);
|
|
327
327
|
}, 3e3);
|
|
328
328
|
return () => clearTimeout(e);
|
|
329
329
|
}
|
|
330
|
-
}, [
|
|
330
|
+
}, [u]);
|
|
331
331
|
let g = () => {
|
|
332
|
-
f(!1),
|
|
332
|
+
f(!1), a();
|
|
333
333
|
};
|
|
334
|
-
return /*#__PURE__*/ h(
|
|
334
|
+
return /*#__PURE__*/ h(t, { children: [/*#__PURE__*/ m(n, {
|
|
335
335
|
className: "break-all",
|
|
336
|
-
children:
|
|
337
|
-
}), /*#__PURE__*/ m(
|
|
336
|
+
children: e.tenant_id
|
|
337
|
+
}), /*#__PURE__*/ m(n, { children: i ? /*#__PURE__*/ m(l, {
|
|
338
338
|
distribution: "center",
|
|
339
339
|
alignment: "center",
|
|
340
|
-
children: /*#__PURE__*/ m(
|
|
341
|
-
}) : /*#__PURE__*/ m(
|
|
340
|
+
children: /*#__PURE__*/ m(r, { variant: "primary" })
|
|
341
|
+
}) : /*#__PURE__*/ m(l, {
|
|
342
342
|
distribution: "end",
|
|
343
343
|
alignment: "end",
|
|
344
344
|
children: (() => {
|
|
345
|
-
if (!
|
|
346
|
-
if (
|
|
345
|
+
if (!o) return /*#__PURE__*/ m(p, {});
|
|
346
|
+
if (u) return /*#__PURE__*/ m(d, {
|
|
347
347
|
variant: "primary-danger",
|
|
348
348
|
onClick: g,
|
|
349
|
-
title:
|
|
350
|
-
"aria-label":
|
|
349
|
+
title: s._({ id: "w9+8d7" }),
|
|
350
|
+
"aria-label": s._({ id: "w9+8d7" }),
|
|
351
351
|
"data-testid": "confirm-removal",
|
|
352
|
-
disabled:
|
|
353
|
-
children:
|
|
352
|
+
disabled: i,
|
|
353
|
+
children: s._({ id: "t/YqKh" })
|
|
354
354
|
});
|
|
355
355
|
{
|
|
356
|
-
let
|
|
357
|
-
return /*#__PURE__*/ m(
|
|
356
|
+
let t = e.tenant_id;
|
|
357
|
+
return /*#__PURE__*/ m(d, {
|
|
358
358
|
icon: "deleteForever",
|
|
359
359
|
onClick: () => f(!0),
|
|
360
|
-
title:
|
|
360
|
+
title: s._({
|
|
361
361
|
id: "tfxu04",
|
|
362
|
-
values: { tenantId:
|
|
362
|
+
values: { tenantId: t }
|
|
363
363
|
}),
|
|
364
|
-
"aria-label":
|
|
364
|
+
"aria-label": s._({
|
|
365
365
|
id: "tfxu04",
|
|
366
|
-
values: { tenantId:
|
|
366
|
+
values: { tenantId: t }
|
|
367
367
|
}),
|
|
368
|
-
"data-testid": `remove-${
|
|
369
|
-
disabled:
|
|
368
|
+
"data-testid": `remove-${t}`,
|
|
369
|
+
disabled: i
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
372
|
})()
|
|
@@ -382,17 +382,17 @@ var N = ({ client: e, isOpen: t, onClose: r, project: i, flavor: a, canEdit: o }
|
|
|
382
382
|
flavorId: n
|
|
383
383
|
});
|
|
384
384
|
function R() {
|
|
385
|
-
return /*#__PURE__*/ m(
|
|
385
|
+
return /*#__PURE__*/ m(t, { children: /*#__PURE__*/ m(n, {
|
|
386
386
|
colSpan: 2,
|
|
387
|
-
children: /*#__PURE__*/ m(
|
|
387
|
+
children: /*#__PURE__*/ m(l, {
|
|
388
388
|
distribution: "center",
|
|
389
389
|
alignment: "center",
|
|
390
|
-
children: /*#__PURE__*/ m(
|
|
390
|
+
children: /*#__PURE__*/ m(r, { variant: "primary" })
|
|
391
391
|
})
|
|
392
392
|
}) });
|
|
393
393
|
}
|
|
394
|
-
function z({ permissionsPromise:
|
|
395
|
-
let { i18n: b, _: x } = w(), { translateError: C } = f(), T = y(
|
|
394
|
+
function z({ permissionsPromise: e, flavorAccessPromise: r, client: o, project: s, flavor: c, onAccessUpdate: u, isAddingAccess: g, setIsAddingAccess: _, setMessage: v }) {
|
|
395
|
+
let { i18n: b, _: x } = w(), { translateError: C } = f(), T = y(e), E = y(r), [D, O] = S(""), [k, A] = S({}), [j, M] = S(/* @__PURE__ */ new Set()), [N, I] = S(!1), L = c["os-flavor-access:is_public"] !== !1, R = E.length === 0 && !g, z = () => {
|
|
396
396
|
let e = D.trim(), t = {};
|
|
397
397
|
return e ? E.some((t) => t.tenant_id === e) && (t.tenantId = "This tenant already has access to this flavor.") : t.tenantId = "Tenant ID is required.", A(t), Object.keys(t).length === 0;
|
|
398
398
|
}, B = () => {
|
|
@@ -408,9 +408,9 @@ function z({ permissionsPromise: t, flavorAccessPromise: n, client: s, project:
|
|
|
408
408
|
I(!0);
|
|
409
409
|
try {
|
|
410
410
|
let e = D.trim();
|
|
411
|
-
|
|
412
|
-
project_id:
|
|
413
|
-
flavorId:
|
|
411
|
+
u(await o.compute.addTenantAccess.mutate({
|
|
412
|
+
project_id: s,
|
|
413
|
+
flavorId: c.id,
|
|
414
414
|
targetProjectId: e
|
|
415
415
|
})), v({
|
|
416
416
|
text: b._({
|
|
@@ -430,9 +430,9 @@ function z({ permissionsPromise: t, flavorAccessPromise: n, client: s, project:
|
|
|
430
430
|
}, H = async (e) => {
|
|
431
431
|
M((t) => new Set(t).add(e));
|
|
432
432
|
try {
|
|
433
|
-
|
|
434
|
-
project_id:
|
|
435
|
-
flavorId:
|
|
433
|
+
u(await o.compute.removeTenantAccess.mutate({
|
|
434
|
+
project_id: s,
|
|
435
|
+
flavorId: c.id,
|
|
436
436
|
targetProjectId: e
|
|
437
437
|
})), v({
|
|
438
438
|
text: b._({
|
|
@@ -453,27 +453,27 @@ function z({ permissionsPromise: t, flavorAccessPromise: n, client: s, project:
|
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
|
-
return L ? /*#__PURE__*/ h(
|
|
456
|
+
return L ? /*#__PURE__*/ h(i, {
|
|
457
457
|
columns: 2,
|
|
458
|
-
children: [/*#__PURE__*/ h(
|
|
458
|
+
children: [/*#__PURE__*/ h(t, { children: [/*#__PURE__*/ m(a, { children: b._({ id: "T9Mtpi" }) }), /*#__PURE__*/ m(a, { children: " " })] }), /*#__PURE__*/ m(t, { children: /*#__PURE__*/ m(n, {
|
|
459
459
|
colSpan: 2,
|
|
460
460
|
className: "text-theme-default py-4 text-center",
|
|
461
461
|
children: b._({ id: "9x6EkK" })
|
|
462
462
|
}) })]
|
|
463
|
-
}) : /*#__PURE__*/ h(p, { children: [T.canAdd && /*#__PURE__*/ m(
|
|
463
|
+
}) : /*#__PURE__*/ h(p, { children: [T.canAdd && /*#__PURE__*/ m(l, {
|
|
464
464
|
direction: "horizontal",
|
|
465
465
|
className: "bg-theme-background-lvl-1 justify-end p-2",
|
|
466
|
-
children: /*#__PURE__*/ m(
|
|
466
|
+
children: /*#__PURE__*/ m(d, {
|
|
467
467
|
label: b._({ id: "q0Rla3" }),
|
|
468
468
|
"data-testid": "addTenantButton",
|
|
469
469
|
onClick: () => _(!0),
|
|
470
470
|
variant: "primary",
|
|
471
471
|
disabled: g
|
|
472
472
|
})
|
|
473
|
-
}), /*#__PURE__*/ h(
|
|
473
|
+
}), /*#__PURE__*/ h(i, {
|
|
474
474
|
columns: 2,
|
|
475
475
|
children: [
|
|
476
|
-
/*#__PURE__*/ h(
|
|
476
|
+
/*#__PURE__*/ h(t, { children: [/*#__PURE__*/ m(a, { children: b._({ id: "T9Mtpi" }) }), /*#__PURE__*/ m(a, {})] }),
|
|
477
477
|
g && /*#__PURE__*/ m(P, {
|
|
478
478
|
tenantId: D,
|
|
479
479
|
errors: k,
|
|
@@ -495,7 +495,7 @@ function z({ permissionsPromise: t, flavorAccessPromise: n, client: s, project:
|
|
|
495
495
|
onDelete: () => H(e.tenant_id),
|
|
496
496
|
canDelete: T.canRemove
|
|
497
497
|
}, e.tenant_id)),
|
|
498
|
-
R && /*#__PURE__*/ m(
|
|
498
|
+
R && /*#__PURE__*/ m(t, { children: /*#__PURE__*/ m(n, {
|
|
499
499
|
colSpan: 2,
|
|
500
500
|
className: "text-theme-default py-4 text-center",
|
|
501
501
|
children: b._({ id: "Gyd3No" })
|
|
@@ -503,24 +503,24 @@ function z({ permissionsPromise: t, flavorAccessPromise: n, client: s, project:
|
|
|
503
503
|
]
|
|
504
504
|
})] });
|
|
505
505
|
}
|
|
506
|
-
var B = ({ client:
|
|
507
|
-
let { i18n: o, _:
|
|
508
|
-
|
|
506
|
+
var B = ({ client: t, isOpen: n, onClose: r, project: i, flavor: a }) => {
|
|
507
|
+
let { i18n: o, _: s } = w(), { translateError: l } = f(), [u, d] = S(null), [p, g] = S(!1), y = x(() => n ? I(t, i) : null, [
|
|
508
|
+
t,
|
|
509
509
|
i,
|
|
510
|
-
|
|
511
|
-
]), C = x(() => !
|
|
510
|
+
n
|
|
511
|
+
]), C = x(() => !n || !a?.id ? null : L(t, i, a.id).then((e) => e.filter((e, t, n) => n.findIndex((t) => t.tenant_id === e.tenant_id) === t)).catch((e) => (d({
|
|
512
512
|
text: l(e?.message || "GET_FLAVOR_ACCESS_FAILED"),
|
|
513
513
|
type: "error"
|
|
514
514
|
}), [])), [
|
|
515
|
-
|
|
515
|
+
n,
|
|
516
516
|
a?.id,
|
|
517
|
-
|
|
517
|
+
t,
|
|
518
518
|
i
|
|
519
519
|
]);
|
|
520
520
|
b(() => {
|
|
521
|
-
|
|
522
|
-
}, [
|
|
523
|
-
let [T, E] = S(null), D = `${
|
|
521
|
+
n && d(null);
|
|
522
|
+
}, [n, a?.id]);
|
|
523
|
+
let [T, E] = S(null), D = `${n}-${a?.id}`, O = T?.key === D ? T.promise : C, k = () => {
|
|
524
524
|
d(null), g(!1), E(null), r();
|
|
525
525
|
}, A = (e) => {
|
|
526
526
|
let t = e.filter((e, t, n) => n.findIndex((t) => t.tenant_id === e.tenant_id) === t);
|
|
@@ -531,17 +531,17 @@ var B = ({ client: e, isOpen: t, onClose: r, project: i, flavor: a }) => {
|
|
|
531
531
|
});
|
|
532
532
|
});
|
|
533
533
|
};
|
|
534
|
-
if (!
|
|
534
|
+
if (!n || !a || !y || !O) return null;
|
|
535
535
|
let j = a.name;
|
|
536
|
-
return /*#__PURE__*/ m(
|
|
536
|
+
return /*#__PURE__*/ m(c, {
|
|
537
537
|
onCancel: k,
|
|
538
538
|
title: o._({
|
|
539
539
|
id: "6Rnrsz",
|
|
540
540
|
values: { flavorName: j }
|
|
541
541
|
}),
|
|
542
|
-
open:
|
|
542
|
+
open: n,
|
|
543
543
|
size: "xl",
|
|
544
|
-
children: /*#__PURE__*/ h("div", { children: [u && /*#__PURE__*/ m(
|
|
544
|
+
children: /*#__PURE__*/ h("div", { children: [u && /*#__PURE__*/ m(e, {
|
|
545
545
|
onDismiss: () => d(null),
|
|
546
546
|
text: u.text,
|
|
547
547
|
variant: u.type,
|
|
@@ -552,7 +552,7 @@ var B = ({ client: e, isOpen: t, onClose: r, project: i, flavor: a }) => {
|
|
|
552
552
|
children: /*#__PURE__*/ m(z, {
|
|
553
553
|
permissionsPromise: y,
|
|
554
554
|
flavorAccessPromise: O,
|
|
555
|
-
client:
|
|
555
|
+
client: t,
|
|
556
556
|
project: i,
|
|
557
557
|
flavor: a,
|
|
558
558
|
onAccessUpdate: A,
|
|
@@ -562,7 +562,7 @@ var B = ({ client: e, isOpen: t, onClose: r, project: i, flavor: a }) => {
|
|
|
562
562
|
})
|
|
563
563
|
})] })
|
|
564
564
|
});
|
|
565
|
-
}, V = ({ client:
|
|
565
|
+
}, V = ({ client: o, isOpen: p, onClose: g, project: _, flavor: v, onSuccess: y }) => {
|
|
566
566
|
let { i18n: b, _: x } = w(), { translateError: T } = f(), [E, D] = S(!1), [O, k] = S(null), A = async () => {
|
|
567
567
|
if (!v?.id) {
|
|
568
568
|
k(b._({ id: "NlcF/v" }));
|
|
@@ -570,7 +570,7 @@ var B = ({ client: e, isOpen: t, onClose: r, project: i, flavor: a }) => {
|
|
|
570
570
|
}
|
|
571
571
|
k(null);
|
|
572
572
|
try {
|
|
573
|
-
D(!0), await
|
|
573
|
+
D(!0), await o.compute.deleteFlavor.mutate({
|
|
574
574
|
project_id: _,
|
|
575
575
|
flavorId: v.id
|
|
576
576
|
}), y(), j();
|
|
@@ -582,30 +582,30 @@ var B = ({ client: e, isOpen: t, onClose: r, project: i, flavor: a }) => {
|
|
|
582
582
|
}, j = () => {
|
|
583
583
|
k(null), g();
|
|
584
584
|
};
|
|
585
|
-
return /*#__PURE__*/ h(
|
|
585
|
+
return /*#__PURE__*/ h(c, {
|
|
586
586
|
onCancel: j,
|
|
587
587
|
title: b._({ id: "JT3I1g" }),
|
|
588
588
|
open: p,
|
|
589
589
|
onConfirm: A,
|
|
590
|
-
modalFooter: /*#__PURE__*/ m(
|
|
590
|
+
modalFooter: /*#__PURE__*/ m(s, {
|
|
591
591
|
className: "flex justify-end",
|
|
592
|
-
children: /*#__PURE__*/ h(u, { children: [/*#__PURE__*/ m(
|
|
592
|
+
children: /*#__PURE__*/ h(u, { children: [/*#__PURE__*/ m(d, {
|
|
593
593
|
variant: "primary-danger",
|
|
594
594
|
onClick: A,
|
|
595
595
|
disabled: E,
|
|
596
|
-
children: E ? /*#__PURE__*/ m(
|
|
597
|
-
}), /*#__PURE__*/ m(
|
|
596
|
+
children: E ? /*#__PURE__*/ m(r, { size: "small" }) : /*#__PURE__*/ m(C, { id: "cnGeoo" })
|
|
597
|
+
}), /*#__PURE__*/ m(d, {
|
|
598
598
|
variant: "default",
|
|
599
599
|
onClick: j,
|
|
600
600
|
children: /*#__PURE__*/ m(C, { id: "dEgA5A" })
|
|
601
601
|
})] })
|
|
602
602
|
}),
|
|
603
|
-
children: [E && /*#__PURE__*/ m(
|
|
603
|
+
children: [E && /*#__PURE__*/ m(l, {
|
|
604
604
|
distribution: "center",
|
|
605
605
|
alignment: "center",
|
|
606
|
-
children: /*#__PURE__*/ m(
|
|
606
|
+
children: /*#__PURE__*/ m(r, { variant: "primary" })
|
|
607
607
|
}), !E && /*#__PURE__*/ h("div", { children: [
|
|
608
|
-
O && /*#__PURE__*/ m(
|
|
608
|
+
O && /*#__PURE__*/ m(e, {
|
|
609
609
|
onDismiss: () => {
|
|
610
610
|
k(null);
|
|
611
611
|
},
|
|
@@ -613,20 +613,20 @@ var B = ({ client: e, isOpen: t, onClose: r, project: i, flavor: a }) => {
|
|
|
613
613
|
variant: "error",
|
|
614
614
|
className: "mb-4"
|
|
615
615
|
}),
|
|
616
|
-
/*#__PURE__*/ m(
|
|
616
|
+
/*#__PURE__*/ m(e, {
|
|
617
617
|
text: b._({ id: "QQ8wUG" }),
|
|
618
618
|
variant: "danger",
|
|
619
619
|
className: "mb-4"
|
|
620
620
|
}),
|
|
621
|
-
v && /*#__PURE__*/ h(
|
|
621
|
+
v && /*#__PURE__*/ h(i, {
|
|
622
622
|
columns: 2,
|
|
623
623
|
children: [
|
|
624
|
-
/*#__PURE__*/ h(
|
|
625
|
-
/*#__PURE__*/ h(
|
|
626
|
-
/*#__PURE__*/ h(
|
|
627
|
-
/*#__PURE__*/ h(
|
|
628
|
-
/*#__PURE__*/ h(
|
|
629
|
-
v.swap && /*#__PURE__*/ h(
|
|
624
|
+
/*#__PURE__*/ h(t, { children: [/*#__PURE__*/ m(a, { children: b._({ id: "6YtxFj" }) }), /*#__PURE__*/ m(n, { children: v.name })] }),
|
|
625
|
+
/*#__PURE__*/ h(t, { children: [/*#__PURE__*/ m(a, { children: b._({ id: "S0kLOH" }) }), /*#__PURE__*/ m(n, { children: v.id })] }),
|
|
626
|
+
/*#__PURE__*/ h(t, { children: [/*#__PURE__*/ m(a, { children: b._({ id: "MZGbkp" }) }), /*#__PURE__*/ m(n, { children: v.vcpus })] }),
|
|
627
|
+
/*#__PURE__*/ h(t, { children: [/*#__PURE__*/ m(a, { children: b._({ id: "RGhYAo" }) }), /*#__PURE__*/ h(n, { children: [v.ram, " MiB"] })] }),
|
|
628
|
+
/*#__PURE__*/ h(t, { children: [/*#__PURE__*/ m(a, { children: b._({ id: "sPFHpI" }) }), /*#__PURE__*/ h(n, { children: [v.disk, " GiB"] })] }),
|
|
629
|
+
v.swap && /*#__PURE__*/ h(t, { children: [/*#__PURE__*/ m(a, { children: b._({ id: "vH2C/2" }) }), /*#__PURE__*/ h(n, { children: [v.swap, " MiB"] })] })
|
|
630
630
|
]
|
|
631
631
|
})
|
|
632
632
|
] })]
|
|
@@ -635,4 +635,4 @@ var B = ({ client: e, isOpen: t, onClose: r, project: i, flavor: a }) => {
|
|
|
635
635
|
//#endregion
|
|
636
636
|
export { B as n, N as r, V as t };
|
|
637
637
|
|
|
638
|
-
//# sourceMappingURL=DeleteFlavorModal-
|
|
638
|
+
//# sourceMappingURL=DeleteFlavorModal-Dwm0Hh84.mjs.map
|