mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Merge 18e95dd6dd
into 2a0d15799c
This commit is contained in:
commit
5e8078bc58
1 changed files with 18 additions and 6 deletions
|
@ -1914,12 +1914,24 @@ class App extends React.Component<AppProps, AppState> {
|
||||||
this.setState({ errorMessage: error.message });
|
this.setState({ errorMessage: error.message });
|
||||||
});
|
});
|
||||||
|
|
||||||
if (
|
if (type === "clipboard" || (fileHandle && isImageFileHandle(fileHandle))) {
|
||||||
this.state.exportEmbedScene &&
|
this.setState({
|
||||||
fileHandle &&
|
fileHandle:
|
||||||
isImageFileHandle(fileHandle)
|
this.state.exportEmbedScene && fileHandle ? fileHandle : null,
|
||||||
) {
|
openDialog: null,
|
||||||
this.setState({ fileHandle });
|
toast: {
|
||||||
|
message:
|
||||||
|
type === "clipboard"
|
||||||
|
? t("toast.copyToClipboard")
|
||||||
|
: fileHandle?.name
|
||||||
|
? t("toast.fileSavedToFilename").replace(
|
||||||
|
"{filename}",
|
||||||
|
`"${fileHandle.name}"`,
|
||||||
|
)
|
||||||
|
: t("toast.fileSaved"),
|
||||||
|
duration: 1500,
|
||||||
|
},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue