diff --git a/VERSION.properties b/VERSION.properties index 86768f4..9459c9b 100644 --- a/VERSION.properties +++ b/VERSION.properties @@ -1,2 +1,2 @@ -client.version=1.2.113 -server.version=1.2.105 +client.version=1.2.114 +server.version=1.2.106 diff --git a/shine-UI/js/pages/registration-draft-keys-view.js b/shine-UI/js/pages/registration-draft-keys-view.js index cb18a05..c1c1b4d 100644 --- a/shine-UI/js/pages/registration-draft-keys-view.js +++ b/shine-UI/js/pages/registration-draft-keys-view.js @@ -15,6 +15,19 @@ function makeSecretField({ label, value }) { const row = document.createElement('div'); row.className = 'inline-input-row'; + const eyeIcon = ` + + `; + const eyeOffIcon = ` + + `; const input = document.createElement('input'); input.className = 'input key-input'; @@ -23,16 +36,22 @@ function makeSecretField({ label, value }) { input.value = value; const toggleBtn = document.createElement('button'); - toggleBtn.className = 'ghost-btn'; + toggleBtn.className = 'icon-btn key-toggle-btn'; toggleBtn.type = 'button'; - toggleBtn.textContent = 'Показать'; + toggleBtn.innerHTML = eyeOffIcon; + toggleBtn.setAttribute('aria-label', 'Показать ключ'); + toggleBtn.title = 'Показать ключ'; toggleBtn.addEventListener('click', () => { if (input.type === 'password') { input.type = 'text'; - toggleBtn.textContent = 'Скрыть'; + toggleBtn.innerHTML = eyeIcon; + toggleBtn.setAttribute('aria-label', 'Скрыть ключ'); + toggleBtn.title = 'Скрыть ключ'; } else { input.type = 'password'; - toggleBtn.textContent = 'Показать'; + toggleBtn.innerHTML = eyeOffIcon; + toggleBtn.setAttribute('aria-label', 'Показать ключ'); + toggleBtn.title = 'Показать ключ'; } });