Skip to content

Commit

Permalink
fix: do not hide header on changing password
Browse files Browse the repository at this point in the history
  • Loading branch information
CedrikNikita authored and peronczyk committed Oct 11, 2024
1 parent 033bc5f commit 0d15d09
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/popup/pages/SecureLoginSettings.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<template>
<IonPage>
<IonContent class="ion-padding ion-content-bg">
<IonContent
ref="infoBoxEl"
class="ion-padding ion-content-bg"
>
<div class="secure-login-settings">
<div
v-if="IS_MOBILE_APP"
Expand Down Expand Up @@ -129,7 +132,6 @@
<InfoBox
v-if="isPasswordChangedSuccessfully"
ref="infoBoxEl"
class="info-box"
type="success"
:text="$t('pages.secureLogin.changePassword.success')"
Expand Down Expand Up @@ -207,7 +209,7 @@ export default defineComponent({
await updatePassword(currentPassword.value, newPassword.value);
isPasswordChangedSuccessfully.value = true;
await nextTick();
infoBoxEl.value?.$el?.scrollIntoView();
infoBoxEl.value?.$el?.scrollBy(0, infoBoxEl.value?.$el?.scrollWidth);
} catch (error) {
isAuthFailed.value = true;
isPasswordChangedSuccessfully.value = false;
Expand Down

0 comments on commit 0d15d09

Please sign in to comment.