Disable import menu options when project asset storage is not ready

This commit is contained in:
2026-04-02 23:55:37 +02:00
parent 22004d45e0
commit 8ee4a40485

View File

@@ -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
}
]