You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
818 B
29 lines
818 B
export default {
|
|
openModal: ({ rootState }, modal) => {
|
|
let modalArray = modal.split("/");
|
|
if (modalArray.length == 2) {
|
|
rootState[modalArray[0]]['modal'][modalArray[1]] = true;
|
|
} else {
|
|
rootState.modal[modalArray[0]] = true;
|
|
}
|
|
},
|
|
|
|
setResultCurrentModal: ({ state }, result) => {
|
|
state.result = result;
|
|
},
|
|
|
|
setProoertiesCurrentModal: ({ state }, properties) => {
|
|
state.properties = properties;
|
|
},
|
|
|
|
closeModal: ({ state, rootState }, modal) => {
|
|
let modalArray = modal.split("/");
|
|
if (modalArray.length == 2) {
|
|
rootState[modalArray[0]]['modal'][modalArray[1]] = false;
|
|
} else {
|
|
rootState.modal[modalArray[0]] = false;
|
|
}
|
|
state.properties = null;
|
|
},
|
|
};
|