Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
42280751
Commit
42280751
authored
Apr 12, 2026
by
erio
Browse files
fix(notify): add duplicate email check message and improve extra email UX
parent
81287e96
Changes
3
Show whitespace changes
Inline
Side-by-side
frontend/src/components/user/profile/ProfileBalanceNotifyCard.vue
View file @
42280751
...
...
@@ -49,16 +49,18 @@
</div>
</div>
<!-- Verified extra emails -->
<!-- Verified extra emails
with toggle
-->
<div
v-if=
"extraEmails.length > 0"
class=
"space-y-2 mb-3"
>
<div
v-for=
"email in extraEmails"
:key=
"email"
class=
"flex items-center justify-between px-3 py-2 bg-gray-50 dark:bg-dark-700 rounded-lg"
>
<span
class=
"text-sm text-gray-700 dark:text-gray-300"
>
{{
email
}}
</span>
<button
@
click=
"handleRemoveEmail(email)"
class=
"text-red-500 hover:text-red-700 text-sm"
>
<div
class=
"flex items-center gap-2"
>
<button
@
click=
"handleRemoveEmail(email)"
class=
"text-red-500 hover:text-red-700 text-xs"
>
{{
t
(
'
profile.balanceNotify.removeEmail
'
)
}}
</button>
</div>
</div>
</div>
<!-- Pending (unverified) emails -->
<div
v-if=
"pendingEmails.length > 0"
class=
"space-y-2 mb-3"
>
...
...
@@ -185,7 +187,7 @@ function addPendingEmail() {
const
email
=
newEmail
.
value
.
trim
()
if
(
!
email
)
return
if
(
email
===
props
.
userEmail
||
extraEmails
.
value
.
includes
(
email
)
||
pendingEmails
.
value
.
some
(
p
=>
p
.
email
===
email
))
{
appStore
.
showError
(
t
(
'
common.error
'
))
appStore
.
showError
(
t
(
'
profile.balanceNotify.emailDuplicate
'
))
return
}
pendingEmails
.
value
.
push
({
email
,
codeSent
:
false
,
code
:
''
,
sending
:
false
,
verifying
:
false
,
countdown
:
0
,
timer
:
null
})
...
...
frontend/src/i18n/locales/en.ts
View file @
42280751
...
...
@@ -929,6 +929,7 @@ export default {
verifySuccess
:
'
Email added successfully
'
,
removeEmail
:
'
Remove
'
,
removeSuccess
:
'
Email removed
'
,
emailDuplicate
:
'
This email already exists
'
,
}
},
...
...
frontend/src/i18n/locales/zh.ts
View file @
42280751
...
...
@@ -933,6 +933,7 @@ export default {
verifySuccess
:
'
邮箱添加成功
'
,
removeEmail
:
'
移除
'
,
removeSuccess
:
'
邮箱已移除
'
,
emailDuplicate
:
'
该邮箱已存在
'
,
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment