Просмотр исходного кода

✨ feat(ui): add the attribute `mode="password"` to the password input on the Setup page to enable password visibility toggle

Apple\Apple 7 месяцев назад
Родитель
Сommit
d39c9cbec6
2 измененных файлов с 3 добавлено и 0 удалено
  1. 1 0
      web/src/i18n/locales/en.json
  2. 2 0
      web/src/pages/Setup/index.js

+ 1 - 0
web/src/i18n/locales/en.json

@@ -15,6 +15,7 @@
   "其他登录选项": "Other login options",
   "其他登录选项": "Other login options",
   "其他注册选项": "Other registration options",
   "其他注册选项": "Other registration options",
   "请输入您的用户名或邮箱地址": "Please enter your username or email address",
   "请输入您的用户名或邮箱地址": "Please enter your username or email address",
+  "请输入您的邮箱地址": "Please enter your email address",
   "请输入您的密码": "Please enter your password",
   "请输入您的密码": "Please enter your password",
   "继续": "Continue",
   "继续": "Continue",
   "%d 点额度": "%d point quota",
   "%d 点额度": "%d point quota",

+ 2 - 0
web/src/pages/Setup/index.js

@@ -349,6 +349,7 @@ const Setup = () => {
                           size='large'
                           size='large'
                           className="mb-4 !rounded-lg"
                           className="mb-4 !rounded-lg"
                           noLabel={false}
                           noLabel={false}
+                          mode="password"
                           validateStatus="default"
                           validateStatus="default"
                           onChange={(value) =>
                           onChange={(value) =>
                             setFormData({ ...formData, password: value })
                             setFormData({ ...formData, password: value })
@@ -364,6 +365,7 @@ const Setup = () => {
                           size='large'
                           size='large'
                           className="!rounded-lg"
                           className="!rounded-lg"
                           noLabel={false}
                           noLabel={false}
+                          mode="password"
                           validateStatus="default"
                           validateStatus="default"
                           onChange={(value) =>
                           onChange={(value) =>
                             setFormData({ ...formData, confirmPassword: value })
                             setFormData({ ...formData, confirmPassword: value })