fix: Single select for agents and teams in Macros actions (#5837)

* Ignore settings.json

* Single select dropdown for teams and agents
This commit is contained in:
Fayaz Ahmed 2022-11-10 20:09:33 +05:30 committed by GitHub
parent 9eb861a3b7
commit 6aba352e0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

2
.gitignore vendored
View file

@ -60,3 +60,5 @@ test/cypress/videos/*
/config/master.key
/config/*.enc
.vscode/settings.json

View file

@ -83,7 +83,7 @@ export default {
const inputType = this.macroActionTypes.find(
item => item.key === action.action_name
).inputType;
if (inputType === 'multi_select') {
if (inputType === 'multi_select' || inputType === 'search_select') {
actionParams = [
...this.getDropdownValues(action.action_name, this.$store),
].filter(item => [...action.action_params].includes(item.id));

View file

@ -2,12 +2,12 @@ export const MACRO_ACTION_TYPES = [
{
key: 'assign_team',
label: 'Assign a team',
inputType: 'multi_select',
inputType: 'search_select',
},
{
key: 'assign_best_agent',
label: 'Assign an agent',
inputType: 'multi_select',
inputType: 'search_select',
},
{
key: 'add_label',