v0.4.8-dev New Release #3

Merged
peisongxiao merged 8 commits from v0.4.8-dev into master 2026-01-20 05:41:07 +00:00
Showing only changes of commit dd84a2044f - Show all commits

View File

@@ -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) => {
if (select.value) {
select.dataset.preferred = 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) {
if (envSelect.value) {
envSelect.dataset.preferred = envSelect.value; envSelect.dataset.preferred = envSelect.value;
}
populateSelect(envSelect, envs, "No environments configured"); populateSelect(envSelect, envs, "No environments configured");
} }
if (profileSelect) { if (profileSelect) {
if (profileSelect.value) {
profileSelect.dataset.preferred = profileSelect.value; profileSelect.dataset.preferred = profileSelect.value;
}
populateSelect(profileSelect, profiles, "No profiles configured"); populateSelect(profileSelect, profiles, "No profiles configured");
} }
if (taskSelect) { if (taskSelect) {
if (taskSelect.value) {
taskSelect.dataset.preferred = taskSelect.value; taskSelect.dataset.preferred = taskSelect.value;
}
populateSelect(taskSelect, tasks, "No tasks configured"); populateSelect(taskSelect, tasks, "No tasks configured");
} }
}); });