fix(dashboard): preselect saved type/kind in edit-target form (#176)
CI / Check (push) Has been skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Agent (push) Has been skipped
CI / Deploy Dashboard (push) Successful in 2m36s
CI / Deploy Docs (push) Has been skipped
CI / Deploy MCP (push) Has been skipped

This commit was merged in pull request #176.
This commit is contained in:
2026-07-16 17:52:27 +00:00
parent 7932f60ab9
commit 55e4117369
+2 -2
View File
@@ -232,7 +232,7 @@ pub fn TargetsPage() -> Element {
value: "{edit_type}",
oninput: move |e| edit_type.set(e.value()),
for (v, l) in TARGET_TYPES.iter().copied() {
option { value: "{v}", "{l}" }
option { value: "{v}", selected: edit_type() == v, "{l}" }
}
}
}
@@ -257,7 +257,7 @@ pub fn TargetsPage() -> Element {
value: "{e_kind}",
oninput: move |e| e_kind.set(e.value()),
for (v, l) in ARTIFACT_KINDS.iter().copied() {
option { value: "{v}", "{l}" }
option { value: "{v}", selected: e_kind() == v, "{l}" }
}
}
}