Skip to content

Commit

Permalink
Updated method for setting which language to load at app startup
Browse files Browse the repository at this point in the history
  • Loading branch information
joemarct committed Oct 7, 2023
1 parent 95e56eb commit 0cedaec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default {
const index = vm.$store.getters['global/getWalletIndex']
const mnemonic = await getMnemonic(index)
if (mnemonic) {
vm.$i18n.locale = vm.$store.getters['global/language'].value
vm.$q.lang.set(vm.$store.getters['global/language'].value)
await vm.savingInitialChipnet(mnemonic)
// first check if vaults are empty
this.$store.dispatch('global/saveExistingWallet')
Expand Down
5 changes: 3 additions & 2 deletions src/pages/transaction/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,12 @@ export default {
this.adjustTransactionsDivHeight()
},
adjustTransactionsDivHeight (opts={timeout: 500}) {
const vm = this
let timeout = opts?.timeout
if (Number.isNaN(timeout)) timeout = 500
setTimeout(() => {
const sectionHeight = this.$refs.fixedSection.clientHeight
this.$refs.transactionSection.setAttribute(
const sectionHeight = vm.$refs.fixedSection.clientHeight
vm.$refs.transactionSection.setAttribute(
'style',
`position: relative; margin-top: ${sectionHeight - 24}px; z-index: 1; transition: margin-top 0.25s ease-in-out`
)
Expand Down

0 comments on commit 0cedaec

Please sign in to comment.