From 3fd503cb46724fc16f4113a65bf96a893ebb242d Mon Sep 17 00:00:00 2001 From: rahulramesha Date: Wed, 6 Nov 2024 20:03:57 +0530 Subject: [PATCH 1/3] enable no load by default --- web/ce/constants/issues.ts | 3 -- .../workspace/sidebar/help-section.tsx | 41 +++++++++---------- web/core/store/user/index.ts | 3 +- 3 files changed, 21 insertions(+), 26 deletions(-) diff --git a/web/ce/constants/issues.ts b/web/ce/constants/issues.ts index d30ec492e56..dc6ffbcb8c2 100644 --- a/web/ce/constants/issues.ts +++ b/web/ce/constants/issues.ts @@ -31,7 +31,4 @@ export const filterActivityOnSelectedFilters = ( ): TIssueActivityComment[] => activity.filter((activity) => filter.includes(activity.activity_type as TActivityFilters)); -// boolean to decide if the local db cache is enabled -export const ENABLE_LOCAL_DB_CACHE = false; - export const ENABLE_ISSUE_DEPENDENCIES = false; diff --git a/web/core/components/workspace/sidebar/help-section.tsx b/web/core/components/workspace/sidebar/help-section.tsx index 5570b5727a0..a99dec10625 100644 --- a/web/core/components/workspace/sidebar/help-section.tsx +++ b/web/core/components/workspace/sidebar/help-section.tsx @@ -16,7 +16,6 @@ import { usePlatformOS } from "@/hooks/use-platform-os"; // plane web components import { PlaneVersionNumber } from "@/plane-web/components/global"; import { WorkspaceEditionBadge } from "@/plane-web/components/workspace"; -import { ENABLE_LOCAL_DB_CACHE } from "@/plane-web/constants/issues"; export interface WorkspaceHelpSectionProps { setSidebarActive?: React.Dispatch>; @@ -110,24 +109,23 @@ export const SidebarHelpSection: React.FC = observer( Contact sales -
- {ENABLE_LOCAL_DB_CACHE && ( - -
{ - e.preventDefault(); - e.stopPropagation(); - }} - className="flex w-full items-center justify-between text-xs hover:bg-custom-background-80" - > - Local Cache - toggleLocalDB(workspaceSlug?.toString(), projectId?.toString())} - /> -
-
- )} +
( + +
{ + e.preventDefault(); + e.stopPropagation(); + }} + className="flex w-full items-center justify-between text-xs hover:bg-custom-background-80" + > + Local Cache + toggleLocalDB(workspaceSlug?.toString(), projectId?.toString())} + /> +
+
+ )