stash
This commit is contained in:
parent
829cd76dee
commit
4d558536b8
4 changed files with 22 additions and 60 deletions
|
@ -462,6 +462,12 @@ const store = createStore({
|
|||
commit('setMessageTemplateVariables', data);
|
||||
}
|
||||
},
|
||||
async createMessageTemplate({commit, state}, template_name) {
|
||||
const {data, success} = await http.post('/2/message_templates/', {name: template_name}, state.user.token);
|
||||
if (data && success) {
|
||||
commit('setMessageTemplates', data);
|
||||
}
|
||||
},
|
||||
async fetchShippingVouchers({commit, state}) {
|
||||
if (!state.user.token) return;
|
||||
if (state.fetchedData.shippingVouchers > Date.now() - 1000 * 60 * 60 * 24) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue