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:
parent
9eb861a3b7
commit
6aba352e0d
3 changed files with 5 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -60,3 +60,5 @@ test/cypress/videos/*
|
|||
|
||||
/config/master.key
|
||||
/config/*.enc
|
||||
|
||||
.vscode/settings.json
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue