From 23e33a606152217582eb089651f59dc4a7453755 Mon Sep 17 00:00:00 2001 From: Yifeng Wang Date: Wed, 12 Apr 2023 19:23:46 +0800 Subject: [PATCH] chore: enable databse feature flag (#1895) --- apps/web/src/atoms/public-workspace/index.ts | 2 +- apps/web/src/pages/workspace/[workspaceId]/[pageId].tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/atoms/public-workspace/index.ts b/apps/web/src/atoms/public-workspace/index.ts index 6f3e71f976..76924ecc8e 100644 --- a/apps/web/src/atoms/public-workspace/index.ts +++ b/apps/web/src/atoms/public-workspace/index.ts @@ -23,7 +23,7 @@ function createPublicWorkspace( ); blockSuiteWorkspace.awarenessStore.setFlag('enable_block_hub', false); blockSuiteWorkspace.awarenessStore.setFlag('enable_set_remote_flag', false); - blockSuiteWorkspace.awarenessStore.setFlag('enable_database', false); + blockSuiteWorkspace.awarenessStore.setFlag('enable_database', true); blockSuiteWorkspace.awarenessStore.setFlag('enable_edgeless_toolbar', false); blockSuiteWorkspace.awarenessStore.setFlag('enable_slash_menu', false); blockSuiteWorkspace.awarenessStore.setFlag('enable_drag_handle', false); diff --git a/apps/web/src/pages/workspace/[workspaceId]/[pageId].tsx b/apps/web/src/pages/workspace/[workspaceId]/[pageId].tsx index 8e3cad4c31..d483e5bb4f 100644 --- a/apps/web/src/pages/workspace/[workspaceId]/[pageId].tsx +++ b/apps/web/src/pages/workspace/[workspaceId]/[pageId].tsx @@ -20,7 +20,7 @@ import type { BlockSuiteWorkspace, NextPageWithLayout } from '../../../shared'; function enableFullFlags(blockSuiteWorkspace: BlockSuiteWorkspace) { blockSuiteWorkspace.awarenessStore.setFlag('enable_set_remote_flag', false); - blockSuiteWorkspace.awarenessStore.setFlag('enable_database', false); + blockSuiteWorkspace.awarenessStore.setFlag('enable_database', true); blockSuiteWorkspace.awarenessStore.setFlag('enable_slash_menu', true); blockSuiteWorkspace.awarenessStore.setFlag('enable_edgeless_toolbar', true); blockSuiteWorkspace.awarenessStore.setFlag('enable_block_hub', true);