mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-27 07:58:58 +03:00
bump copy-to-clipboard to 4.0.2 (#24353)
This commit is contained in:
@@ -362,10 +362,10 @@ function Logs() {
|
||||
});
|
||||
}, [isLoading, logState]);
|
||||
|
||||
const handleCopyLogs = useCallback(() => {
|
||||
const handleCopyLogs = useCallback(async () => {
|
||||
if (!logState.entries.length) return;
|
||||
|
||||
if (copy(logState.entries.map((entry) => entry.text).join("\n"))) {
|
||||
if (await copy(logState.entries.map((entry) => entry.text).join("\n"))) {
|
||||
toast.success(t("logs.copy.success"));
|
||||
} else {
|
||||
toast.error(t("logs.copy.error"));
|
||||
|
||||
Reference in New Issue
Block a user