Don't display kubernetes distro variants in image lists

This commit is contained in:
L. Bradley LaBoon 2020-01-10 15:25:19 -05:00
parent 15cdc36767
commit 013d769e68
2 changed files with 6 additions and 0 deletions

View File

@ -112,6 +112,9 @@ import { settings, elements, apiGet, apiPost, parseParams, setupHeader } from "/
// Add images to selector // Add images to selector
for (var i = 0; i < data.images.length; i++) { 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"); var image = document.createElement("option");
image.value = data.images[i].id; image.value = data.images[i].id;
image.innerHTML = data.images[i].label; image.innerHTML = data.images[i].label;

View File

@ -78,6 +78,9 @@ import { settings, elements, apiGet, apiPost, parseParams, setupHeader } from "/
// Add images to selector // Add images to selector
for (var i = 0; i < data.images.length; i++) { 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"); var image = document.createElement("option");
image.value = data.images[i].id; image.value = data.images[i].id;
image.innerHTML = data.images[i].label; image.innerHTML = data.images[i].label;