From 5d3d5b657809e37ee0912754cbac5548ae8a1591 Mon Sep 17 00:00:00 2001 From: Feroze Mohideen Date: Tue, 14 May 2024 16:10:29 -0400 Subject: [PATCH] properly unblock datastores for sandbox --- .../src/main/home/database-dashboard/DatabaseDashboard.tsx | 2 +- dashboard/src/main/home/sidebar/Sidebar.tsx | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dashboard/src/main/home/database-dashboard/DatabaseDashboard.tsx b/dashboard/src/main/home/database-dashboard/DatabaseDashboard.tsx index a78d3c45a6..152b3b3386 100644 --- a/dashboard/src/main/home/database-dashboard/DatabaseDashboard.tsx +++ b/dashboard/src/main/home/database-dashboard/DatabaseDashboard.tsx @@ -69,7 +69,7 @@ const DatabaseDashboard: React.FC = () => { }, [datastores, searchValue, typeFilter]); const renderContents = (): JSX.Element => { - if (!currentProject?.db_enabled) { + if (!currentProject?.sandbox_enabled && !currentProject?.db_enabled) { return ( Datastores are not enabled for this project diff --git a/dashboard/src/main/home/sidebar/Sidebar.tsx b/dashboard/src/main/home/sidebar/Sidebar.tsx index c252b4f154..04e6703caa 100644 --- a/dashboard/src/main/home/sidebar/Sidebar.tsx +++ b/dashboard/src/main/home/sidebar/Sidebar.tsx @@ -319,6 +319,12 @@ class Sidebar extends Component { Datastores + {match(currentProject) + .with({ sandbox_enabled: true }, () => NEW) + .with({ db_enabled: false }, () => ( + + )) + .otherwise(() => null)} {!currentProject.sandbox_enabled && (