From 70682128bf8707e3ca5c97d8d5f422b9e4533fbe Mon Sep 17 00:00:00 2001 From: Sevo Kukol Date: Tue, 12 Sep 2023 13:42:09 +0200 Subject: [PATCH] Disable Synapse and Scripts commands for Fabric --- .../Menus/CommandBar/CommandBarComponentButtonFactory.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx index b39de9c05..8e7e13e35 100644 --- a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx +++ b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx @@ -54,7 +54,7 @@ export function createStaticCommandBarButtons( const buttons: CommandButtonComponentProps[] = []; buttons.push(newCollectionBtn); - if (userContext.apiType !== "Tables" && userContext.apiType !== "Cassandra") { + if (userContext.apiType !== "Tables" && userContext.apiType !== "Cassandra" && configContext.platform != Platform.Fabric) { const addSynapseLink = createOpenSynapseLinkDialogButton(container); if (addSynapseLink) { @@ -257,7 +257,7 @@ export function createDivider(): CommandButtonComponentProps { } function areScriptsSupported(): boolean { - return userContext.apiType === "SQL" || userContext.apiType === "Gremlin"; + return configContext.platform != Platform.Fabric && (userContext.apiType === "SQL" || userContext.apiType === "Gremlin"); } function createNewCollectionGroup(container: Explorer): CommandButtonComponentProps {