Don't display kubernetes distro variants in image lists
This commit is contained in:
parent
15cdc36767
commit
013d769e68
@ -112,6 +112,9 @@ import { settings, elements, apiGet, apiPost, parseParams, setupHeader } from "/
|
||||
|
||||
// Add images to selector
|
||||
for (var i = 0; i < data.images.length; i++) {
|
||||
// Don't display kubernetes distro variants
|
||||
if (data.images[i].id.indexOf("-kube-") != -1)
|
||||
continue;
|
||||
var image = document.createElement("option");
|
||||
image.value = data.images[i].id;
|
||||
image.innerHTML = data.images[i].label;
|
||||
|
@ -78,6 +78,9 @@ import { settings, elements, apiGet, apiPost, parseParams, setupHeader } from "/
|
||||
|
||||
// Add images to selector
|
||||
for (var i = 0; i < data.images.length; i++) {
|
||||
// Don't display kubernetes distro variants
|
||||
if (data.images[i].id.indexOf("-kube-") != -1)
|
||||
continue;
|
||||
var image = document.createElement("option");
|
||||
image.value = data.images[i].id;
|
||||
image.innerHTML = data.images[i].label;
|
||||
|
Loading…
Reference in New Issue
Block a user