Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Wallet.vue
Show First 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | export default { | ||||
walletId: null, | walletId: null, | ||||
paymentMethods: [], | paymentMethods: [], | ||||
selectedPaymentMethod: null | selectedPaymentMethod: null | ||||
} | } | ||||
}, | }, | ||||
mounted() { | mounted() { | ||||
$('#wallet button').focus() | $('#wallet button').focus() | ||||
this.walletId = this.$store.state.authInfo.wallets[0].id | this.walletId = this.$root.authInfo.wallets[0].id | ||||
this.$root.startLoading() | this.$root.startLoading() | ||||
axios.get('/api/v4/wallets/' + this.walletId) | axios.get('/api/v4/wallets/' + this.walletId) | ||||
.then(response => { | .then(response => { | ||||
this.$root.stopLoading() | this.$root.stopLoading() | ||||
this.wallet = response.data | this.wallet = response.data | ||||
const receiptsTab = $('#wallet-receipts') | const receiptsTab = $('#wallet-receipts') | ||||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |