chore: Add router views for agent_bots (#5600)

This commit is contained in:
Pranav Raj S
2022-10-12 11:58:52 +11:00
committed by GitHub
parent 38776906ab
commit 9b5c0de0ea
12 changed files with 168 additions and 61 deletions

View File

@@ -3,6 +3,7 @@ import { frontendURL } from '../../../../helper/URLHelper';
const settings = accountId => ({
parentNav: 'settings',
routes: [
'agent_bots',
'agent_list',
'canned_list',
'labels_list',
@@ -74,10 +75,20 @@ const settings = accountId => ({
{
icon: 'automation',
label: 'AUTOMATION',
beta: true,
hasSubMenu: false,
toState: frontendURL(`accounts/${accountId}/settings/automation/list`),
toStateName: 'automation_list',
},
{
icon: 'bot',
label: 'AGENT_BOTS',
beta: true,
hasSubMenu: false,
toState: frontendURL(`accounts/${accountId}/settings/agent-bots`),
toStateName: 'agent_bots',
featureFlagKey: 'agent_bots',
},
{
icon: 'chat-multiple',
label: 'CANNED_RESPONSES',