ui: finalize wizard hidden state toggles

This commit is contained in:
a.tolmachev
2026-05-02 14:53:11 +00:00
parent 8a4deb6249
commit 39cae4a557
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -88,10 +88,10 @@
element.textContent = tfKey('wizard.step_short', { step: stepNumber });
});
document.querySelectorAll('.step-pane').forEach(function(pane) { pane.style.display = 'none'; });
document.querySelectorAll('.step-pane').forEach(function(pane) { pane.hidden = true; });
var panelId = step === 3 ? step3PanelId() : 'step-panel-' + step;
var pane = document.getElementById(panelId);
if (pane) pane.style.display = '';
if (pane) pane.hidden = false;
document.querySelectorAll('.step-item').forEach(function(item, index) {
var stepNumber = index + 1;
+1 -1
View File
@@ -1943,7 +1943,7 @@ function prefillUpstream(baseUrl, headers, authProfileRef) {
var trigger = document.getElementById('upstream-new-trigger');
var form = document.getElementById('upstream-new-form');
if (trigger) trigger.classList.add('active');
if (form) form.style.display = '';
if (form) form.hidden = false;
setValue('new-upstream-name', 'imported-upstream');
setValue('new-upstream-url', baseUrl);
setValue('new-upstream-static-headers', headers && Object.keys(headers).length ? JSON.stringify(headers, null, 2) : '{\n}');