708df374f5
**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.
10 lines
195 B
JavaScript
10 lines
195 B
JavaScript
import state from './state';
|
|
import mutations from './mutations';
|
|
import * as actions from './actions';
|
|
|
|
export default () => ({
|
|
namespaced: true,
|
|
state: state(),
|
|
mutations,
|
|
actions,
|
|
});
|