This commit is contained in:
j3d1 2024-06-09 19:09:32 +02:00
parent 5af32a6c55
commit caf5d2d11f

View file

@ -463,7 +463,7 @@ const store = createStore({
} }
}, },
async createMessageTemplate({commit, state}, template_name) { async createMessageTemplate({commit, state}, template_name) {
const {data, success} = await http.post('/2/message_templates/', {name: template_name, message: ''}, state.user.token); const {data, success} = await http.post('/2/message_templates/', {name: template_name, message: ' '}, state.user.token);
const {data: newTemplates, success: newSuccess} = await http.get('/2/message_templates/', state.user.token); const {data: newTemplates, success: newSuccess} = await http.get('/2/message_templates/', state.user.token);
if (data && success) { if (data && success) {
commit('setMessageTemplates', data); commit('setMessageTemplates', data);