Skip to content

Instantly share code, notes, and snippets.

@Naoray
Created November 19, 2017 16:21
Show Gist options
  • Save Naoray/8bbe11255bf32fa777dd8e9445638a0b to your computer and use it in GitHub Desktop.
Save Naoray/8bbe11255bf32fa777dd8e9445638a0b to your computer and use it in GitHub Desktop.
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