2020-10-24 23:57:45 +05:30
|
|
|
import * as types from './mutation_types';
|
2021-01-03 14:25:43 +05:30
|
|
|
import axios from '~/lib/utils/axios_utils';
|
2020-10-24 23:57:45 +05:30
|
|
|
|
|
|
|
export default {
|
|
|
|
closeDrawer({ commit }) {
|
|
|
|
commit(types.CLOSE_DRAWER);
|
|
|
|
},
|
2021-01-03 14:25:43 +05:30
|
|
|
openDrawer({ commit }, storageKey) {
|
2020-10-24 23:57:45 +05:30
|
|
|
commit(types.OPEN_DRAWER);
|
2021-01-03 14:25:43 +05:30
|
|
|
|
|
|
|
if (storageKey) {
|
|
|
|
localStorage.setItem(storageKey, JSON.stringify(false));
|
|
|
|
}
|
|
|
|
},
|
|
|
|
fetchItems({ commit }) {
|
|
|
|
return axios.get('/-/whats_new').then(({ data }) => {
|
|
|
|
commit(types.SET_FEATURES, data);
|
|
|
|
});
|
2020-10-24 23:57:45 +05:30
|
|
|
},
|
|
|
|
};
|