From 3003140ba911381f811f9fd5388477361c4747b0 Mon Sep 17 00:00:00 2001 From: Richard Knoll Date: Tue, 19 Nov 2024 14:49:20 -0800 Subject: [PATCH] hide extension import file button on platforms without file access --- webapp/src/extensionsBrowser.tsx | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/webapp/src/extensionsBrowser.tsx b/webapp/src/extensionsBrowser.tsx index 2155296b3f98..763825bacfff 100644 --- a/webapp/src/extensionsBrowser.tsx +++ b/webapp/src/extensionsBrowser.tsx @@ -496,6 +496,7 @@ export const ExtensionsBrowser = (props: ExtensionsProps) => { } const categoryNames = getCategoryNames(); + const showImportFile = pxt.BrowserUtils.hasFileAccess(); return ( { } } -
-
+ {showImportFile && +
+
+ } {displayMode == ExtensionView.Search && <>