export default { $_openModal: ({ rootState }, modal) => { let modalArray = modal.split("/"); if (modalArray.length == 2) { rootState[modalArray[0]]['modal'][modalArray[1]] = true; // if (typeof rootState[modalArray[0]]['callback_modal'] != "undefined" && typeof rootState[modalArray[0]]['callback_modal'][modalArray[1]] != "undefined") { // } } else { rootState.modal[modalArray[0]] = true; } }, $_closeModal: ({ state, rootState }, modal) => { let modalArray = modal.split("/"); if (modalArray.length == 2) { rootState[modalArray[0]]['modal'][modalArray[1]] = false; // if (typeof rootState[modalArray[0]]['callback_modal'] != "undefined" && typeof rootState[modalArray[0]]['callback_modal'][modalArray[1]] != "undefined") { // } } else { rootState.modal[modalArray[0]] = false; } state.properties = null; }, dialog:({state, commit}, properties) => { state.modal.dialog = true; commit('SET_DIALOG_TYPE', properties.type); commit('SET_DIALOG_PROPERTIES', properties); }, };