Chatwoot/app/javascript/widget/store/modules/events.js

20 lines
292 B
JavaScript
Raw Normal View History

import events from 'widget/api/events';
const actions = {
create: async (_, { name }) => {
try {
await events.create(name);
} catch (error) {
// Ignore error
}
},
};
export default {
namespaced: true,
state: {},
getters: {},
actions,
mutations: {},
};