Skip to content

Commit e1af205

Browse files
committed
fix(settings): add cancel buttons to email and password reset flows
- Added "Cancel" buttons to the email and password update UI - Prevents users from getting stuck in the confirmation state if they click by mistake or a token expires - Resets the UI state back to the initial request view
1 parent 16faa8c commit e1af205

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/pages/account/settings.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ async function confirmPasswordReset() {
338338
>
339339
{{ isConfirmingEmail ? 'Saving...' : 'Save New Email' }}
340340
</ButtonBase>
341+
342+
<ButtonBase variant="secondary" @click="isEmailCodeSent = false"> Cancel </ButtonBase>
341343
</div>
342344
</div>
343345
</section>
@@ -391,6 +393,8 @@ async function confirmPasswordReset() {
391393
>
392394
{{ isConfirmingPassword ? 'Saving...' : 'Save New Password' }}
393395
</ButtonBase>
396+
397+
<ButtonBase variant="secondary" @click="isPasswordCodeSent = false"> Cancel </ButtonBase>
394398
</div>
395399
</section>
396400
</div>

0 commit comments

Comments
 (0)