From 3c6d2fe356b139d996c2bb5143819d58ff1bd083 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Fri, 24 Jan 2025 09:55:51 +0530 Subject: [PATCH] feat: hide captain on self-hosted We will revert this later, for now it's only a stop-gap solution, until we figure out how to toggle this correctly --- app/javascript/dashboard/components-next/sidebar/Sidebar.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue index 509654013..3f2f4ed6f 100644 --- a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue +++ b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue @@ -171,20 +171,24 @@ const menuItems = computed(() => { name: 'Captain', icon: 'i-woot-captain', label: t('SIDEBAR.CAPTAIN'), + showOnlyOnCloud: true, children: [ { name: 'Assistants', label: t('SIDEBAR.CAPTAIN_ASSISTANTS'), + showOnlyOnCloud: true, to: accountScopedRoute('captain_assistants_index'), }, { name: 'Documents', label: t('SIDEBAR.CAPTAIN_DOCUMENTS'), + showOnlyOnCloud: true, to: accountScopedRoute('captain_documents_index'), }, { name: 'Responses', label: t('SIDEBAR.CAPTAIN_RESPONSES'), + showOnlyOnCloud: true, to: accountScopedRoute('captain_responses_index'), }, ],