some fixes
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user