Prettier format all js files

This commit is contained in:
George Drummond
2019-01-24 09:38:43 -05:00
parent 20604e6ca9
commit 619bc9fe59
32 changed files with 553 additions and 443 deletions

View File

@@ -1,14 +1,14 @@
export default {
mounted: function () {
mounted: function() {
this.$root.$on('field-change', this.handleFieldChange)
},
methods: {
handleFieldChange: function (event) {
handleFieldChange: function(event) {
const { value, name } = event
if (typeof this[name] !== undefined) {
this[name] = value
}
},
}
},
}

View File

@@ -8,25 +8,25 @@ export default {
if (this.allyHandler) this.allyHandler.disengage()
},
openModal: function (name) {
openModal: function(name) {
this.activeModal = name
this.$emit('modalOpen', true)
const idSelector = `#${this.modalId}`
this.allyHandler = ally.maintain.disabled({
filter: idSelector
});
}
filter: idSelector,
})
},
},
data: function() {
return {
activeModal: null,
allyHandler: null
allyHandler: null,
}
},
computed: {
modalId: function () {
return !!this.activeModal ? `modal--${ this.activeModal }` : null
}
}
modalId: function() {
return !!this.activeModal ? `modal--${this.activeModal}` : null
},
},
}