941fbb0d72
* Chore: Webwidget Inbox Tech Debts * Additional customization options creating Web Widget * Changes to edit Page for Web Widget * Remove the WebWidget API end points * Minor chores Address: #680, #502 Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
29 lines
448 B
JavaScript
29 lines
448 B
JavaScript
import { SET_WIDGET_COLOR } from '../types';
|
|
|
|
const state = {
|
|
widgetColor: '',
|
|
};
|
|
|
|
const getters = {
|
|
getWidgetColor: $state => $state.widgetColor,
|
|
};
|
|
|
|
const actions = {
|
|
setWidgetColor({ commit }, data) {
|
|
commit(SET_WIDGET_COLOR, data);
|
|
},
|
|
};
|
|
|
|
const mutations = {
|
|
[SET_WIDGET_COLOR]($state, data) {
|
|
$state.widgetColor = data.widgetColor;
|
|
},
|
|
};
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state,
|
|
getters,
|
|
actions,
|
|
mutations,
|
|
};
|