some fixes

This commit is contained in:
Ayzen
2026-06-06 01:42:18 +03:00
parent 69a96e4c26
commit b3a8cd834f
7 changed files with 238 additions and 89 deletions
+12
View File
@@ -89,6 +89,14 @@ function makeFieldRow(entry) {
const label = document.createElement("label");
label.textContent = entry.name;
label.htmlFor = "f_" + entry.name;
if (entry.applies_on_start) {
// Stable run_config field: editing it here takes effect on the next pipeline start.
const hint = document.createElement("span");
hint.className = "on-start-hint";
hint.textContent = " (on Start)";
hint.title = "Applied when the pipeline next starts";
label.appendChild(hint);
}
row.appendChild(label);
let el;
@@ -112,6 +120,10 @@ function makeFieldRow(entry) {
if (entry.max != null) el.max = entry.max;
el.step = entry.kind === "float" ? (entry.step || "any") : (entry.step || 1);
el.value = entry.value;
} else if (entry.kind === "textarea") {
el = document.createElement("textarea");
el.rows = 3;
el.value = entry.value == null ? "" : String(entry.value);
} else {
el = document.createElement("input");
el.type = "text";