backups: Fix issue with Javascript in add remote location form

Tests:

- In remote repository add form, selecting radio options for authentication
types does not throw an error. The password field is shown/hidden as expected.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2026-02-04 16:25:47 -08:00
parent 305b1f01f5
commit ad40072267
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -23,8 +23,8 @@
*/
document.addEventListener('DOMContentLoaded', () => {
const keyAuth = document.getElementById('id_ssh_auth_type_key');
const passwordAuth = document.getElementById('id_ssh_auth_type_password');
const keyAuth = document.getElementById('id_ssh_auth_type_0');
const passwordAuth = document.getElementById('id_ssh_auth_type_1');
const sshPasswordField = document.getElementById('id_ssh_password');
const encryptionType = document.getElementById('id_encryption');
const encryptionPassphraseField = document.getElementById('id_encryption_passphrase');