Skip to content

Commit

Permalink
reset scroll status after changing the page (#2999)
Browse files Browse the repository at this point in the history
* reset scroll status after changing the page


---------

Co-authored-by: Tomasz Wiaderek <[email protected]>
  • Loading branch information
wiaderwek and Tomasz Wiaderek authored Jan 12, 2024
1 parent 1950c23 commit c5f6247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/administration/ProvisioningOptionsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export default defineComponent({
const isWarningDialogOpen: Ref<boolean> = ref(false);
onMounted(async () => {
window.scrollTo({ top: 0, behavior: "smooth" });
await fetchProvisioningOptionsData(props.systemId);
initialProvisioningOptions.value = { ...provisioningOptionsData.value };
Expand Down
1 change: 1 addition & 0 deletions src/pages/administration/LDAPConfig.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export default {
},
},
mounted() {
window.scrollTo({ top: 0, behavior: "smooth" });
document.title = buildPageTitle(this.$t("pages.administration.ldap.title"));
},
};
Expand Down

0 comments on commit c5f6247

Please sign in to comment.