Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore(email): Feature flag email sharing (#821)

dev-rb321c5b1e7f04
diff --git a/js/app/packages/block-email/component/TopBar.tsx b/js/app/packages/block-email/component/TopBar.tsx
index 5051671177..68637c93f9 100644
--- a/js/app/packages/block-email/component/TopBar.tsx
+++ b/js/app/packages/block-email/component/TopBar.tsx
@@ -9,7 +9,10 @@ import {
} from '@app/component/split-layout/components/SplitToolbar';
import { hasPermissions, Permissions } from '@core/component/SharePermissions';
import { ShareButton } from '@core/component/TopBar/ShareButton';
-import { ENABLE_PROPERTIES_METADATA } from '@core/constant/featureFlags';
+import {
+ ENABLE_EMAIL_SHARING,
+ ENABLE_PROPERTIES_METADATA,
+} from '@core/constant/featureFlags';
import { Show } from 'solid-js';
import { useEmailContext } from './EmailContext';
import { EmailPropertiesModal } from './EmailPropertiesModal';
@@ -39,12 +42,14 @@ export function TopBar(props: { id: string; title: string }) {
)}
/>
</Show>
- <ShareButton
- id={props.id}
- name={props.title}
- itemType="email"
- userPermissions={email.permissions().type}
- />
+ <Show when={ENABLE_EMAIL_SHARING}>
+ <ShareButton
+ id={props.id}
+ name={props.title}
+ itemType="email"
+ userPermissions={email.permissions().type}
+ />
+ </Show>
</div>
</SplitToolbarRight>
</>
diff --git a/js/app/packages/core/constant/featureFlags.ts b/js/app/packages/core/constant/featureFlags.ts
index 7fb94be713..58c9a03f9b 100644
--- a/js/app/packages/core/constant/featureFlags.ts
+++ b/js/app/packages/core/constant/featureFlags.ts
@@ -134,3 +134,5 @@ export const ENABLE_CUSTOM_CURSOR_TEXT_GLYPH_DETECTION = true;
export const ENABLE_CREATE_TASK = true;
export const ENABLE_TASKS_TABS = true;
+
+export const ENABLE_EMAIL_SHARING = false;