fixed issue with config
This commit is contained in:
@@ -1952,7 +1952,9 @@ function updateEnvApiOptionsForContainer(container, apiConfigs) {
|
|||||||
if (!container) return;
|
if (!container) return;
|
||||||
const selects = container.querySelectorAll(".env-config-api-select");
|
const selects = container.querySelectorAll(".env-config-api-select");
|
||||||
selects.forEach((select) => {
|
selects.forEach((select) => {
|
||||||
select.dataset.preferred = select.value;
|
if (select.value) {
|
||||||
|
select.dataset.preferred = select.value;
|
||||||
|
}
|
||||||
populateSelect(select, apiConfigs, "No API configs configured");
|
populateSelect(select, apiConfigs, "No API configs configured");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -2195,15 +2197,21 @@ function updateShortcutOptionsForContainer(container, options = {}) {
|
|||||||
const profileSelect = card.querySelector(".shortcut-profile");
|
const profileSelect = card.querySelector(".shortcut-profile");
|
||||||
const taskSelect = card.querySelector(".shortcut-task");
|
const taskSelect = card.querySelector(".shortcut-task");
|
||||||
if (envSelect) {
|
if (envSelect) {
|
||||||
envSelect.dataset.preferred = envSelect.value;
|
if (envSelect.value) {
|
||||||
|
envSelect.dataset.preferred = envSelect.value;
|
||||||
|
}
|
||||||
populateSelect(envSelect, envs, "No environments configured");
|
populateSelect(envSelect, envs, "No environments configured");
|
||||||
}
|
}
|
||||||
if (profileSelect) {
|
if (profileSelect) {
|
||||||
profileSelect.dataset.preferred = profileSelect.value;
|
if (profileSelect.value) {
|
||||||
|
profileSelect.dataset.preferred = profileSelect.value;
|
||||||
|
}
|
||||||
populateSelect(profileSelect, profiles, "No profiles configured");
|
populateSelect(profileSelect, profiles, "No profiles configured");
|
||||||
}
|
}
|
||||||
if (taskSelect) {
|
if (taskSelect) {
|
||||||
taskSelect.dataset.preferred = taskSelect.value;
|
if (taskSelect.value) {
|
||||||
|
taskSelect.dataset.preferred = taskSelect.value;
|
||||||
|
}
|
||||||
populateSelect(taskSelect, tasks, "No tasks configured");
|
populateSelect(taskSelect, tasks, "No tasks configured");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user