Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
.forProject(page.params.region, page.params.project)
.users.updateEmailVerification($user.$id, !$user.emailVerification);
await invalidate(Dependencies.USER);

addNotification({
message: `${$user.name || $user.email || $user.phone || 'The account'} has been ${
!$user.emailVerification ? 'unverified' : 'verified'
message: `${
$user.name && $user.name.trim() !== ''
? `The email for ${$user.name} has been ${!$user.emailVerification ? 'no longer verified' : 'verified'}`
: `The email has been ${!$user.emailVerification ? 'no longer verified' : 'verified'}`
}`,
type: 'success'
});
Expand All @@ -44,9 +47,12 @@
.forProject(page.params.region, page.params.project)
.users.updatePhoneVerification($user.$id, !$user.phoneVerification);
await invalidate(Dependencies.USER);

addNotification({
message: `${$user.name || $user.email || $user.phone || 'The account'} has been ${
$user.phoneVerification ? 'unverified' : 'verified'
message: `${
$user.name && $user.name.trim() !== ''
? `The phone for ${$user.name} has been ${!$user.phoneVerification ? 'no longer verified' : 'verified'}`
: `The phone has been ${!$user.phoneVerification ? 'no longer verified' : 'verified'}`
}`,
type: 'success'
});
Expand Down