From 35fc6ebf62ae8a6954328f6a5b8c4435e9c679897ce060af8b8ddf18d0f050eb Mon Sep 17 00:00:00 2001 From: AidarKC Date: Tue, 2 Jun 2026 16:43:38 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=BF=D0=B0=D0=BA=D1=82=D0=BD=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0=20=D0=BF=D0=BE=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=D0=B0=20=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=B9=20=D0=B2=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION.properties | 4 +-- .../js/pages/registration-draft-keys-view.js | 27 ++++++++++++++++--- 2 files changed, 25 insertions(+), 6 deletions(-) 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 = 'Показать ключ'; } });