This allows the modal to be used anywhere in the component hierarchy, rather than requiring it to be in the top level.
21 lines
399 B
JavaScript
21 lines
399 B
JavaScript
export default {
|
|
methods: {
|
|
closeModal: function(name) {
|
|
this.modals[name] = false
|
|
},
|
|
openModal: function (name) {
|
|
this.modals[name] = true
|
|
}
|
|
},
|
|
data: function() {
|
|
return {
|
|
modals: {
|
|
styleguideModal: false,
|
|
newProjectConfirmation: false,
|
|
pendingFinancialVerification: false,
|
|
pendingCCPOApproval: false,
|
|
}
|
|
}
|
|
}
|
|
}
|