feat: Add export info on copy PNG to clipboard toast message (#3159)

Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Arun 2021-03-03 17:45:10 +05:30 committed by GitHub
parent 91eb8834e8
commit f295ba98c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View file

@ -94,7 +94,14 @@ export const actionCopyAsPng = register({
return {
appState: {
...appState,
toastMessage: t("toast.copyToClipboardAsPng"),
toastMessage: t("toast.copyToClipboardAsPng", {
exportSelection: selectedElements.length
? t("toast.selection")
: t("toast.canvas"),
exportColorScheme: appState.exportWithDarkMode
? t("buttons.darkMode")
: t("buttons.lightMode"),
}),
},
commitToHistory: false,
};