feat: Assign team with teams none option (#5871)

This commit is contained in:
Tejaswini Chile
2022-11-17 14:15:16 +05:30
committed by GitHub
parent e85f998a08
commit 9bfbd528ef
7 changed files with 46 additions and 3 deletions

View File

@@ -54,6 +54,7 @@ export default {
mute_conversation: null,
snooze_conversation: null,
resolve_conversation: null,
remove_assigned_team: null,
send_webhook_event: params[0],
send_message: params[0],
send_email_transcript: params[0],

View File

@@ -41,8 +41,8 @@ export default {
...mapGetters({
uiFlags: 'macros/getUIFlags',
labels: 'labels/getLabels',
teams: 'teams/getTeams',
agents: 'agents/getAgents',
teams: 'teams/getTeams',
}),
macroId() {
return this.$route.params.macroId;

View File

@@ -84,7 +84,8 @@ export default {
return !(
prop.action_name === 'mute_conversation' ||
prop.action_name === 'snooze_conversation' ||
prop.action_name === 'resolve_conversation'
prop.action_name === 'resolve_conversation' ||
prop.action_name === 'remove_assigned_team'
);
}),
},

View File

@@ -19,6 +19,11 @@ export const MACRO_ACTION_TYPES = [
label: 'Remove a label',
inputType: 'multi_select',
},
{
key: 'remove_assigned_team',
label: 'Remove Assigned Team',
inputType: null,
},
{
key: 'send_email_transcript',
label: 'Send an email transcript',