Created
November 19, 2017 16:21
-
-
Save Naoray/8bbe11255bf32fa777dd8e9445638a0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var base = require('settings/profile/update-contact-information'); | |
Vue.component('spark-update-contact-information', { | |
mixins: [base], | |
/** | |
* The component's data. | |
*/ | |
data() { | |
return { | |
form: $.extend(true, new SparkForm({ | |
phone: '', | |
}), Spark.forms.updateContactInformation) | |
}; | |
}, | |
/** | |
* Bootstrap the component. | |
*/ | |
mounted() { | |
this.form.phone = this.user.phone | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment