Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Admin/User.vue
Show First 20 Lines • Show All 560 Lines • ▼ Show 20 Lines | export default { | ||||
$(e.target).find('select').focus() | $(e.target).find('select').focus() | ||||
// Note: Vue v-model is strict, convert null to a string | // Note: Vue v-model is strict, convert null to a string | ||||
this.wallet.discount_id = this.wallet_discount_id || '' | this.wallet.discount_id = this.wallet_discount_id || '' | ||||
}) | }) | ||||
.modal() | .modal() | ||||
if (!this.discounts.length) { | if (!this.discounts.length) { | ||||
// Fetch discounts | // Fetch discounts | ||||
axios.get('/api/v4/discounts') | axios.get('/api/v4/users/' + this.user.id + '/discounts') | ||||
.then(response => { | .then(response => { | ||||
this.discounts = response.data.list | this.discounts = response.data.list | ||||
}) | }) | ||||
} | } | ||||
}, | }, | ||||
emailEdit() { | emailEdit() { | ||||
this.external_email = this.user.external_email | this.external_email = this.user.external_email | ||||
this.$root.clearFormValidation($('#email-dialog')) | this.$root.clearFormValidation($('#email-dialog')) | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |