From 8ee4a40485f63d5ce222fdaf05e324cbf2a8c4f7 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 2 Apr 2026 23:55:37 +0200 Subject: [PATCH] Disable import menu options when project asset storage is not ready --- src/app/App.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index b230aeea..16c57e56 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -3610,18 +3610,21 @@ export function App({ store, initialStatusMessage }: AppProps) { kind: "action", label: "3D Model (GLB/GLTF)", testId: "import-menu-model", + disabled: !projectAssetStorageReady || projectAssetStorage === null, onSelect: handleImportModelButtonClick }, { kind: "action", label: "Environment", testId: "import-menu-environment", + disabled: !projectAssetStorageReady || projectAssetStorage === null, onSelect: handleImportBackgroundImageButtonClick }, { kind: "action", label: "Audio", testId: "import-menu-audio", + disabled: !projectAssetStorageReady || projectAssetStorage === null, onSelect: handleImportAudioButtonClick } ]