feat: Add a dropdown to change status to "bot" (#1997)
This commit is contained in:
committed by
GitHub
parent
7a890e543a
commit
7c9cd8aa1e
@@ -135,9 +135,12 @@ const actions = {
|
||||
commit(types.default.ASSIGN_TEAM, team);
|
||||
},
|
||||
|
||||
toggleStatus: async ({ commit }, data) => {
|
||||
toggleStatus: async ({ commit }, { conversationId, status }) => {
|
||||
try {
|
||||
const response = await ConversationApi.toggleStatus(data);
|
||||
const response = await ConversationApi.toggleStatus({
|
||||
conversationId,
|
||||
status,
|
||||
});
|
||||
commit(
|
||||
types.default.RESOLVE_CONVERSATION,
|
||||
response.data.payload.current_status
|
||||
|
||||
Reference in New Issue
Block a user