hide export menu and save file based on UIOptions
This commit is contained in:
parent
377b9fbdff
commit
49b74cddb9
@ -216,16 +216,19 @@ const LayerUI = ({
|
|||||||
{actionManager.renderAction("loadScene")}
|
{actionManager.renderAction("loadScene")}
|
||||||
{/* // TODO barnabasmolnar/editor-redesign */}
|
{/* // TODO barnabasmolnar/editor-redesign */}
|
||||||
{/* is this fine here? */}
|
{/* is this fine here? */}
|
||||||
{appState.fileHandle &&
|
{UIOptions.canvasActions.saveToActiveFile &&
|
||||||
|
appState.fileHandle &&
|
||||||
actionManager.renderAction("saveToActiveFile")}
|
actionManager.renderAction("saveToActiveFile")}
|
||||||
{renderJSONExportDialog()}
|
{renderJSONExportDialog()}
|
||||||
<MenuItem
|
{UIOptions.canvasActions.export && (
|
||||||
label={t("buttons.exportImage")}
|
<MenuItem
|
||||||
icon={ExportImageIcon}
|
label={t("buttons.exportImage")}
|
||||||
dataTestId="image-export-button"
|
icon={ExportImageIcon}
|
||||||
onClick={() => setAppState({ openDialog: "imageExport" })}
|
dataTestId="image-export-button"
|
||||||
shortcut={getShortcutFromShortcutName("imageExport")}
|
onClick={() => setAppState({ openDialog: "imageExport" })}
|
||||||
/>
|
shortcut={getShortcutFromShortcutName("imageExport")}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{onCollabButtonClick && (
|
{onCollabButtonClick && (
|
||||||
<CollabButton
|
<CollabButton
|
||||||
isCollaborating={isCollaborating}
|
isCollaborating={isCollaborating}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user