Fix Horde key not saving

This commit is contained in:
SillyLossy
2023-05-12 11:51:43 +03:00
parent 6ee12ba354
commit 41390a44b4
3 changed files with 15 additions and 3 deletions

View File

@ -18,7 +18,12 @@ function updateSecretDisplay() {
for (const [secret_key, input_selector] of Object.entries(INPUT_MAP)) {
const validSecret = !!secret_state[secret_key];
const placeholder = validSecret ? '✔️ Key saved' : '❌ Missing key';
$(input_selector).attr('placeholder', placeholder).val('');
$(input_selector).attr('placeholder', placeholder);
// Horde doesn't have a connect button
if (secret_key !== SECRET_KEYS.HORDE) {
$(input_selector).val('');
}
}
}