Skip to content
Snippets Groups Projects
Commit 195edf2b authored by alice grosch's avatar alice grosch
Browse files

Merge branch 'jupyterhub-share-base-staging' into 'jupyterhub-share-base-production'

Fix small bugs

See merge request jupyterjsc/k8s/config!328
parents 67ce15fc 17233328
No related merge requests found
...@@ -42,10 +42,12 @@ define(["jquery", "home/utils"], function ( ...@@ -42,10 +42,12 @@ define(["jquery", "home/utils"], function (
const currentVal = select.val(); const currentVal = select.val();
resetInputElement(select); resetInputElement(select);
if ($(`#${id}-na-info`).html().includes("flavor")) {
$(`#${id}-na-btn`).hide(); $(`#${id}-na-btn`).hide();
$(`#${id}-na-info`).empty().hide(); $(`#${id}-na-info`).empty().hide();
if (!window.spawnActive[id]) if (!window.spawnActive[id])
$(`#${id}-start-btn`).removeClass("disabled").show(); $(`#${id}-start-btn`).removeClass("disabled").show();
}
let systemFlavors = window.flavorInfo[system]; let systemFlavors = window.flavorInfo[system];
if (!systemFlavors) { if (!systemFlavors) {
......
...@@ -126,7 +126,7 @@ define(["jquery", "home/utils", "home/dropdown-options"], function ( ...@@ -126,7 +126,7 @@ define(["jquery", "home/utils", "home/dropdown-options"], function (
utils.setLabAsNA(id, reason_broken_lab); utils.setLabAsNA(id, reason_broken_lab);
return false; return false;
} }
setFalse = true; let setFalse = true;
for (const reservation_dict of dropdownOptions[service][system][account][project][partition]) { for (const reservation_dict of dropdownOptions[service][system][account][project][partition]) {
if (reservation == reservation_dict.ReservationName) { if (reservation == reservation_dict.ReservationName) {
if (reservation_dict.State == "ACTIVE") { if (reservation_dict.State == "ACTIVE") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment