Skip to content

Commit 755d165

Browse files
committed
fix(settings): clear success and error messages on cancel
1 parent e1af205 commit 755d165

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

app/pages/account/settings.vue

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,16 @@ async function confirmPasswordReset() {
339339
{{ isConfirmingEmail ? 'Saving...' : 'Save New Email' }}
340340
</ButtonBase>
341341

342-
<ButtonBase variant="secondary" @click="isEmailCodeSent = false"> Cancel </ButtonBase>
342+
<ButtonBase
343+
variant="secondary"
344+
@click="
345+
isEmailCodeSent = false
346+
emailSuccess = ''
347+
emailError = ''
348+
"
349+
>
350+
Cancel
351+
</ButtonBase>
343352
</div>
344353
</div>
345354
</section>
@@ -394,7 +403,16 @@ async function confirmPasswordReset() {
394403
{{ isConfirmingPassword ? 'Saving...' : 'Save New Password' }}
395404
</ButtonBase>
396405

397-
<ButtonBase variant="secondary" @click="isPasswordCodeSent = false"> Cancel </ButtonBase>
406+
<ButtonBase
407+
variant="secondary"
408+
@click="
409+
isPasswordCodeSent = false
410+
passwordSuccess = ''
411+
passwordError = ''
412+
"
413+
>
414+
Cancel
415+
</ButtonBase>
398416
</div>
399417
</section>
400418
</div>

0 commit comments

Comments
 (0)