Add default provisions to presets provision combo

This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2018-12-27 01:21:18 -08:00
1 parent b9fafd5382
commit 00dd345784
1 file changed
+14 -3
+14 -3
View File
@@ -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();