Merge branch 'develop' into inline-edit
This commit is contained in:
@@ -183,6 +183,17 @@ export const actions = {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
|
||||
resetSecret: async ({ commit }, botId) => {
|
||||
try {
|
||||
const response = await AgentBotsAPI.resetSecret(botId);
|
||||
commit(types.EDIT_AGENT_BOT, response.data);
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
throwErrorMessage(error);
|
||||
return null;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
export const mutations = {
|
||||
|
||||
@@ -366,6 +366,16 @@ export const actions = {
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
resetSecret: async ({ commit }, inboxId) => {
|
||||
try {
|
||||
const response = await InboxesAPI.resetSecret(inboxId);
|
||||
commit(types.default.EDIT_INBOXES, response.data);
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
throwErrorMessage(error);
|
||||
return null;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
export const mutations = {
|
||||
|
||||
Reference in New Issue
Block a user