From eba13666e218978ee4eaddfc5d139b8ee7650366 Mon Sep 17 00:00:00 2001 From: Jordi Enric <37541088+jordienr@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:19:06 +0200 Subject: [PATCH] hide create collection button on sidebar if flag isnt enabled (#29619) --- .../layouts/LogsLayout/LogsSidebarMenuV2.tsx | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx b/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx index a9f0b881c9f..8b01cebced6 100644 --- a/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx +++ b/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx @@ -192,25 +192,27 @@ export function LogsSidebarMenuV2() { Create query - - - - - - - {!canCreateCollection && ( - - You need additional permissions to create a collection - - )} - + {warehouseEnabled && ( + + + + + + + {!canCreateCollection && ( + + You need additional permissions to create a collection + + )} + + )} ))} - {whCollectionsLoading ? ( + {whCollectionsLoading && warehouseEnabled ? (