Show SSH Key Setup accordion on edit remote too

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
shuki
2026-03-04 18:06:02 +02:00
parent c602df43f6
commit 6a2986c505

View File

@@ -537,11 +537,9 @@ sub render_remote_form {
# ── SSH fields ──────────────────────────────────────────── # ── SSH fields ────────────────────────────────────────────
my $ssh_hidden = ($remote_type ne 'ssh') ? ' hidden' : ''; my $ssh_hidden = ($remote_type ne 'ssh') ? ' hidden' : '';
# SSH key guidance (add mode only) # SSH key guidance
print qq{<div id="type-ssh-guidance"$ssh_hidden>\n}; print qq{<div id="type-ssh-guidance"$ssh_hidden>\n};
unless ($is_edit) {
print GnizaWHM::UI::render_ssh_guidance(); print GnizaWHM::UI::render_ssh_guidance();
}
print qq{</div>\n}; print qq{</div>\n};
my $auth_method = $conf->{REMOTE_AUTH_METHOD} // 'key'; my $auth_method = $conf->{REMOTE_AUTH_METHOD} // 'key';