From 0ea60fa9d7bb01de9d6242f353f8f645a014c0ce Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 9 Jun 2025 21:31:04 +0300 Subject: [PATCH] fix(client): bring back toast for read-only notes --- apps/client/src/services/syntax_highlight.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/client/src/services/syntax_highlight.ts b/apps/client/src/services/syntax_highlight.ts index 6e08af760..02089e09c 100644 --- a/apps/client/src/services/syntax_highlight.ts +++ b/apps/client/src/services/syntax_highlight.ts @@ -2,7 +2,7 @@ import { ensureMimeTypes, highlight, highlightAuto, loadTheme, Themes, type Auto import mime_types from "./mime_types.js"; import options from "./options.js"; import { t } from "./i18n.js"; -import { copyText } from "./clipboard_ext.js"; +import { copyText, copyTextWithToast } from "./clipboard_ext.js"; import { isShare } from "./utils.js"; import { MimeType } from "@triliumnext/commons"; @@ -36,7 +36,13 @@ export function applyCopyToClipboardButton($codeBlock: JQuery) { const $copyButton = $("