Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/User/Profile.vue
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | export default { | ||||
return { | return { | ||||
profile: {}, | profile: {}, | ||||
user_id: null, | user_id: null, | ||||
wallet: {}, | wallet: {}, | ||||
countries: window.config.countries | countries: window.config.countries | ||||
} | } | ||||
}, | }, | ||||
created() { | created() { | ||||
this.wallet = this.$store.state.authInfo.wallet | const authInfo = this.$root.authInfo | ||||
this.profile = this.$store.state.authInfo.settings | this.wallet = authInfo.wallet | ||||
this.user_id = this.$store.state.authInfo.id | this.profile = authInfo.settings | ||||
this.user_id = authInfo.id | |||||
}, | }, | ||||
mounted() { | mounted() { | ||||
$('#first_name').focus() | $('#first_name').focus() | ||||
}, | }, | ||||
methods: { | methods: { | ||||
submit() { | submit() { | ||||
this.$root.clearFormValidation($('#user-profile form')) | this.$root.clearFormValidation($('#user-profile form')) | ||||
Show All 12 Lines |