Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/dev' into feat/ipfs
Browse files Browse the repository at this point in the history
  • Loading branch information
RealGoodProgrammer committed May 14, 2024
2 parents 4b4d8a4 + 8c9e7c9 commit abfea27
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
18 changes: 9 additions & 9 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const routes = [
requiresAuth: false,
layout: 'no-container',
scrollPosition: {
x: 0,
y: 0
left: 0,
top: 0
}
}
},
Expand All @@ -53,8 +53,8 @@ const routes = [
requiresAuth: true,
layout: 'no-container',
scrollPosition: {
x: 0,
y: 0
left: 0,
top: 0
}
}
},
Expand Down Expand Up @@ -103,8 +103,8 @@ const routes = [
layout: 'no-container',
showNavigation: true,
scrollPosition: {
x: 0,
y: 0
left: 0,
top: 0
}
}
},
Expand All @@ -130,8 +130,8 @@ const routes = [
containerNoPadding: true,
showNavigation: true,
scrollPosition: {
x: 0,
y: 0
left: 0,
top: 0
}
}
},
Expand Down Expand Up @@ -183,7 +183,7 @@ const router = createRouter({
scrollBehavior(to, from, savedPosition) {
if (to.params.txId) {
// Don't restore scroll for Transaction details screen
return { x: 0, y: 0 }
return { left: 0, top: 0 }
} else if (savedPosition) {
return savedPosition
} else if (to.meta.scrollPosition) {
Expand Down
2 changes: 0 additions & 2 deletions src/views/Nodes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ export default {
className: () => 'nodes-view'
},
mounted() {
// TODO: probably it can be refactored later
window.scrollTo(0, 0)
this.$store.dispatch('nodes/updateStatus')
nodesManager.updateHealthcheckInterval('onScreen')
Expand Down
7 changes: 1 addition & 6 deletions src/views/Wallets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<script lang="ts">
import draggable from 'vuedraggable'
import AppToolbarCentered from '@/components/AppToolbarCentered.vue'
import { computed, defineComponent, onBeforeUnmount, onMounted, ref } from 'vue'
import { computed, defineComponent, onBeforeUnmount, ref } from 'vue'
import { CryptosInfo, CryptoSymbol, isErc20 } from '@/lib/constants'
import { useStore } from 'vuex'
import WalletsSearchInput from '@/components/wallets/WalletsSearchInput.vue'
Expand Down Expand Up @@ -163,11 +163,6 @@ export default defineComponent({
clearInterval(timer.value)
})
// TODO: probably it can be refactored later
onMounted(() => {
window.scrollTo(0, 0)
})
return {
classes,
dragOptions,
Expand Down

0 comments on commit abfea27

Please sign in to comment.