Skip to content

Commit 9c2b978

Browse files
committed
fix mongo actionId
Signed-off-by: Samiul <samiul@appscode.com>
1 parent 3c0e6eb commit 9c2b978

2 files changed

Lines changed: 239 additions & 5 deletions

File tree

charts/opskubedbcom-mongodbopsrequest-editor/ui/functions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,8 @@ export const useFunc = (model) => {
715715
reconfigure: 'Reconfigure',
716716
}
717717
if (ver) {
718-
const operation = route.params.actions
718+
const operation = storeGet('/resource/activeActionItem/result/operationId') || ''
719+
719720
const match = /^(.*)-opsrequest-(.*)$/.exec(operation)
720721
const opstype = match[2]
721722
commit('wizard/model$update', {

schemas/ui-schema.json

Lines changed: 237 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
"ArrayItem": {
6363
"additionalProperties": false,
6464
"properties": {
65+
"buttonClass": {
66+
"type": "string"
67+
},
6568
"customClass": {
6669
"type": "string"
6770
},
@@ -72,7 +75,159 @@
7275
"type": ["boolean", "string"]
7376
},
7477
"element": {
75-
"$ref": "#/definitions/BaseElement"
78+
"additionalProperties": false,
79+
"properties": {
80+
"addNewButton": {
81+
"additionalProperties": false,
82+
"properties": {
83+
"label": {
84+
"type": "string"
85+
},
86+
"target": {
87+
"type": "string"
88+
},
89+
"url": {
90+
"anyOf": [
91+
{
92+
"type": "string"
93+
},
94+
{
95+
"additionalProperties": false,
96+
"properties": {
97+
"function": {
98+
"type": "string"
99+
}
100+
},
101+
"required": ["function"],
102+
"type": "object"
103+
}
104+
]
105+
}
106+
},
107+
"required": ["label", "url"],
108+
"type": "object"
109+
},
110+
"box": {
111+
"type": "boolean"
112+
},
113+
"customClass": {
114+
"type": "string"
115+
},
116+
"data": {
117+
"type": "string"
118+
},
119+
"description": {
120+
"type": "string"
121+
},
122+
"disable": {
123+
"type": ["boolean", "string"]
124+
},
125+
"disableUnselect": {
126+
"type": "boolean"
127+
},
128+
"editorHeight": {
129+
"type": "string"
130+
},
131+
"fullwidth": {
132+
"type": "boolean"
133+
},
134+
"hasCopy": {
135+
"type": "boolean"
136+
},
137+
"hasGroup": {
138+
"type": ["boolean", "string"]
139+
},
140+
"hasIcon": {
141+
"type": "boolean"
142+
},
143+
"header": {
144+
"type": "string"
145+
},
146+
"height": {
147+
"type": "string"
148+
},
149+
"if": {
150+
"$ref": "#/definitions/IfType"
151+
},
152+
"init": {
153+
"$ref": "#/definitions/Init"
154+
},
155+
"isHorizontal": {
156+
"type": "boolean"
157+
},
158+
"isSecret": {
159+
"type": "boolean"
160+
},
161+
"label": {
162+
"type": "string"
163+
},
164+
"loader": {
165+
"$ref": "#/definitions/LoaderType"
166+
},
167+
"maxValue": {
168+
"type": "number"
169+
},
170+
"minValue": {
171+
"type": "number"
172+
},
173+
"multiple": {
174+
"type": "boolean"
175+
},
176+
"options": {
177+
"$ref": "#/definitions/Options"
178+
},
179+
"readonly": {
180+
"type": "boolean"
181+
},
182+
"refresh": {
183+
"type": "boolean"
184+
},
185+
"showCodeGroup": {
186+
"type": "boolean"
187+
},
188+
"sortable": {
189+
"type": "boolean"
190+
},
191+
"subtitle": {
192+
"type": "string"
193+
},
194+
"type": {
195+
"enum": [
196+
"label-element",
197+
"alert",
198+
"info",
199+
"warning",
200+
"error",
201+
"success",
202+
"neutral",
203+
"input",
204+
"date",
205+
"date-time",
206+
"select",
207+
"textarea",
208+
"radio",
209+
"checkbox",
210+
"switch",
211+
"anchor",
212+
"editor",
213+
"time-picker",
214+
"threshold-input",
215+
"input-compare"
216+
],
217+
"type": "string"
218+
},
219+
"validation": {
220+
"$ref": "#/definitions/Validation"
221+
},
222+
"watcher": {
223+
"$ref": "#/definitions/Watchers"
224+
},
225+
"width": {
226+
"type": "string"
227+
}
228+
},
229+
"required": ["type", "label"],
230+
"type": "object"
76231
},
77232
"if": {
78233
"$ref": "#/definitions/IfType"
@@ -109,6 +264,9 @@
109264
"ArrayObject": {
110265
"additionalProperties": false,
111266
"properties": {
267+
"buttonClass": {
268+
"type": "string"
269+
},
112270
"customClass": {
113271
"type": "string"
114272
},
@@ -156,6 +314,66 @@
156314
"required": ["elements", "label", "schema", "type"],
157315
"type": "object"
158316
},
317+
"ArrayOfArrayObject": {
318+
"additionalProperties": false,
319+
"properties": {
320+
"butttonClass": {
321+
"type": "string"
322+
},
323+
"customClass": {
324+
"type": "string"
325+
},
326+
"description": {
327+
"type": "string"
328+
},
329+
"disable": {
330+
"type": ["boolean", "string"]
331+
},
332+
"elements": {
333+
"items": {
334+
"anyOf": [
335+
{
336+
"$ref": "#/definitions/BaseElement"
337+
},
338+
{
339+
"$ref": "#/definitions/ArrayObject"
340+
}
341+
]
342+
},
343+
"type": "array"
344+
},
345+
"if": {
346+
"$ref": "#/definitions/IfType"
347+
},
348+
"init": {
349+
"$ref": "#/definitions/Init"
350+
},
351+
"label": {
352+
"type": "string"
353+
},
354+
"loader": {
355+
"$ref": "#/definitions/LoaderType"
356+
},
357+
"schema": {
358+
"type": "string"
359+
},
360+
"subtitle": {
361+
"type": "string"
362+
},
363+
"type": {
364+
"const": "array-of-array-object",
365+
"type": "string"
366+
},
367+
"validation": {
368+
"$ref": "#/definitions/Validation"
369+
},
370+
"watcher": {
371+
"$ref": "#/definitions/Watchers"
372+
}
373+
},
374+
"required": ["elements", "label", "schema", "type"],
375+
"type": "object"
376+
},
159377
"BaseElement": {
160378
"anyOf": [
161379
{
@@ -295,6 +513,9 @@
295513
{
296514
"$ref": "#/definitions/ArrayItem"
297515
},
516+
{
517+
"$ref": "#/definitions/ArrayOfArrayObject"
518+
},
298519
{
299520
"$ref": "#/definitions/ObjectItem"
300521
},
@@ -365,7 +586,7 @@
365586
"$ref": "#/definitions/Watchers"
366587
}
367588
},
368-
"required": ["hasCopy", "label", "schema", "type"],
589+
"required": ["label", "schema", "type"],
369590
"type": "object"
370591
},
371592
"FormType": {
@@ -554,6 +775,9 @@
554775
"Label": {
555776
"additionalProperties": false,
556777
"properties": {
778+
"box": {
779+
"type": "boolean"
780+
},
557781
"customClass": {
558782
"type": "string"
559783
},
@@ -563,6 +787,9 @@
563787
"disable": {
564788
"type": ["boolean", "string"]
565789
},
790+
"hasIcon": {
791+
"type": "boolean"
792+
},
566793
"if": {
567794
"$ref": "#/definitions/IfType"
568795
},
@@ -582,7 +809,7 @@
582809
"type": "string"
583810
},
584811
"type": {
585-
"enum": ["label-element", "alert", "info", "warning", "error", "success"],
812+
"enum": ["label-element", "alert", "info", "warning", "error", "success", "neutral"],
586813
"type": "string"
587814
},
588815
"validation": {
@@ -701,6 +928,9 @@
701928
"ObjectItem": {
702929
"additionalProperties": false,
703930
"properties": {
931+
"buttonClass": {
932+
"type": "string"
933+
},
704934
"customClass": {
705935
"type": "string"
706936
},
@@ -1201,6 +1431,9 @@
12011431
"schema": {
12021432
"type": "string"
12031433
},
1434+
"sortable": {
1435+
"type": "boolean"
1436+
},
12041437
"subtitle": {
12051438
"type": "string"
12061439
},
@@ -1361,4 +1594,4 @@
13611594
"type": "object"
13621595
}
13631596
}
1364-
}
1597+
}

0 commit comments

Comments
 (0)