Emit and respond to a modalOpen event, which conditionally adds a class to the body
This commit is contained in:
@@ -2,9 +2,11 @@ export default {
|
||||
methods: {
|
||||
closeModal: function(name) {
|
||||
this.modals[name] = false
|
||||
this.$emit('modalOpen', false)
|
||||
},
|
||||
openModal: function (name) {
|
||||
this.modals[name] = true
|
||||
this.$emit('modalOpen', true)
|
||||
}
|
||||
},
|
||||
data: function() {
|
||||
|
Reference in New Issue
Block a user