From ad1f2fdc32063438d488436df8fb9772cd34dec6 Mon Sep 17 00:00:00 2001 From: Sevo Kukol Date: Tue, 12 Sep 2023 13:41:26 +0200 Subject: [PATCH] Disable Notebooks when running in Fabric --- src/Explorer/Explorer.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index a2edca233..db10c6602 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -1,7 +1,7 @@ import { Link } from "@fluentui/react/lib/Link"; import { isPublicInternetAccessAllowed } from "Common/DatabaseAccountUtility"; import { sendMessage } from "Common/MessageHandler"; -import { Platform } from "ConfigContext"; +import { Platform, configContext } from "ConfigContext"; import { MessageTypes } from "Contracts/ExplorerContracts"; import { IGalleryItem } from "Juno/JunoClient"; import { allowedNotebookServerUrls, validateEndpoint } from "Utils/EndpointValidation"; @@ -1321,10 +1321,10 @@ export default class Explorer { await useNotebook.getState().refreshNotebooksEnabledStateForAccount(); // TODO: remove reference to isNotebookEnabled and isNotebooksEnabledForAccount - const isNotebookEnabled = + const isNotebookEnabled = configContext.platform != Platform.Fabric && ( userContext.features.notebooksDownBanner || useNotebook.getState().isPhoenixNotebooks || - useNotebook.getState().isPhoenixFeatures; + useNotebook.getState().isPhoenixFeatures); useNotebook.getState().setIsNotebookEnabled(isNotebookEnabled); useNotebook .getState()