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

Fix small bugs

parent 33a04e38
No related branches found
No related tags found
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