Вынести дефолтный сервер в конфиг UI и оживить счетчик пароля

This commit is contained in:
AidarKC
2026-06-23 14:11:09 +04:00
parent 95daa230bb
commit 66986b804c
13 changed files with 50 additions and 18 deletions
+6 -1
View File
@@ -100,6 +100,7 @@ export function render({ navigate }) {
onInput: (index, value) => {
passwordWords[index] = value;
syncDraftState();
updateWordsPreview();
},
});
@@ -165,7 +166,10 @@ export function render({ navigate }) {
syncDraftState();
loginInput.addEventListener('input', syncDraftState);
passwordInput.addEventListener('input', syncDraftState);
passwordInput.addEventListener('input', () => {
syncDraftState();
updateWordsPreview();
});
passwordModeCheckbox.addEventListener('change', () => {
const nextMode = passwordModeCheckbox.checked ? 'words' : 'single';
@@ -181,6 +185,7 @@ export function render({ navigate }) {
}
passwordMode = nextMode;
updatePasswordModeVisibility();
updateWordsPreview();
syncDraftState();
});