mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: close dialog and show toast for copy to clipboard
Change the toast duration from 5 seconds to 1.5 seconds.
This commit is contained in:
parent
4dc975ceb5
commit
89c3508fd5
1 changed files with 2 additions and 0 deletions
|
@ -1788,6 +1788,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||||
`"${fileHandle.name}"`,
|
`"${fileHandle.name}"`,
|
||||||
)
|
)
|
||||||
: t("toast.fileSaved"),
|
: t("toast.fileSaved"),
|
||||||
|
duration: 1500,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else if (type === "clipboard") {
|
} else if (type === "clipboard") {
|
||||||
|
@ -1795,6 +1796,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||||
openDialog: null,
|
openDialog: null,
|
||||||
toast: {
|
toast: {
|
||||||
message: t("toast.copyToClipboard"),
|
message: t("toast.copyToClipboard"),
|
||||||
|
duration: 1500,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue