diff --git a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue index cd4309e6e..24dfc71dc 100644 --- a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue +++ b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue @@ -565,6 +565,12 @@ const menuItems = computed(() => { icon: 'i-lucide-clock-alert', to: accountScopedRoute('sla_list'), }, + { + name: ' Conversation Workflow', + label: t('SIDEBAR.CONVERSATION_WORKFLOW'), + icon: 'i-lucide-workflow', + to: accountScopedRoute('conversation_workflow_index'), + }, { name: 'Settings Security', label: t('SIDEBAR.SECURITY'), @@ -646,7 +652,7 @@ const menuItems = computed(() => {
{ + return { name: 'conversation_workflow_index', params: to.params }; + }, + }, + { + path: 'index', + name: 'conversation_workflow_index', + component: ConversationWorkflowIndex, + meta: { + permissions: ['administrator'], + }, + }, + ], + }, + ], +}; diff --git a/app/javascript/dashboard/routes/dashboard/settings/conversationWorkflow/index.vue b/app/javascript/dashboard/routes/dashboard/settings/conversationWorkflow/index.vue new file mode 100644 index 000000000..e50d1191b --- /dev/null +++ b/app/javascript/dashboard/routes/dashboard/settings/conversationWorkflow/index.vue @@ -0,0 +1,28 @@ + + + diff --git a/app/javascript/dashboard/routes/dashboard/settings/settings.routes.js b/app/javascript/dashboard/routes/dashboard/settings/settings.routes.js index 22173f66d..725eff971 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/settings.routes.js +++ b/app/javascript/dashboard/routes/dashboard/settings/settings.routes.js @@ -24,6 +24,7 @@ import teams from './teams/teams.routes'; import customRoles from './customRoles/customRole.routes'; import profile from './profile/profile.routes'; import security from './security/security.routes'; +import conversationWorkflow from './conversationWorkflow/conversationWorkflow.routes'; export default { routes: [ @@ -63,5 +64,6 @@ export default { ...customRoles.routes, ...profile.routes, ...security.routes, + ...conversationWorkflow.routes, ], };