Add default provisions to presets provision combo
This commit is contained in:
1 parent
b9fafd5382
commit
00dd345784
1 file changed
+14
-3
+14
-3
@@ -420,9 +420,20 @@ const component = {
|
||||
const provisionAttr = attributes.find(attr => {
|
||||
return attr.id === "provision";
|
||||
});
|
||||
provisionAttr.options = provisions.value.map(v => {
|
||||
return v["_id"];
|
||||
});
|
||||
|
||||
const provisionIds = new Set([
|
||||
"refresh",
|
||||
"value",
|
||||
"tag",
|
||||
"reboot",
|
||||
"reset",
|
||||
"download",
|
||||
"instances"
|
||||
]);
|
||||
|
||||
for (const p of provisions.value) provisionIds.add(p["_id"]);
|
||||
|
||||
provisionAttr.options = Array.from(provisionIds);
|
||||
}
|
||||
|
||||
const selected = new Set();
|
||||
|
||||
Reference in new issue
Block a user