gitlab-org--gitlab-foss/app/assets/javascripts/vuex_shared/modules/modal/state.js
Paul Slaughter 708df374f5
Create shared gl-modal-vuex component and module
**Why?**
It is significantly easier to manage the visibility of the modal in
Vuex. The module contains the state and mutations to manage this.
The component wraps GlModal and syncs the visibility with the module.
2019-01-03 23:34:15 -06:00

4 lines
62 B
JavaScript

export default () => ({
isVisible: false,
data: null,
});