feat: Conversation transcript in widget (#2549)

This commit is contained in:
Muhsin Keloth
2021-07-13 11:31:21 +05:30
committed by GitHub
parent fc4ef1595b
commit 15085cfb98
13 changed files with 200 additions and 46 deletions

View File

@@ -7,12 +7,15 @@ const state = {
},
};
const getters = {
export const getters = {
getUIFlags: $state => $state.uiFlags,
};
const actions = {
update: async ({ commit }, { email, messageId, submittedValues }) => {
export const actions = {
update: async (
{ commit, dispatch },
{ email, messageId, submittedValues }
) => {
commit('toggleUpdateStatus', true);
try {
const {
@@ -33,6 +36,7 @@ const actions = {
},
{ root: true }
);
dispatch('contacts/get', {}, { root: true });
refreshActionCableConnector(pubsubToken);
} catch (error) {
// Ignore error
@@ -41,7 +45,7 @@ const actions = {
},
};
const mutations = {
export const mutations = {
toggleUpdateStatus($state, status) {
$state.uiFlags.isUpdating = status;
},