mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 08:46:09 +01:00
This commit is contained in:
parent
16685ee743
commit
5cd6d253c1
6 changed files with 6 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ export const openBookmarkMenu = (element: HTMLElement, event: MouseEvent, bookma
|
|||
label: window.siyuan.languages.remove,
|
||||
click: () => {
|
||||
const bookmarkText = element.querySelector(".b3-list-item__text").textContent;
|
||||
confirmDialog(window.siyuan.languages.deleteOpConfirm, `${window.siyuan.languages.confirmDelete} <b>${escapeHtml(bookmarkText)}</b>?`, () => {
|
||||
confirmDialog(window.siyuan.languages.deleteOpConfirm, window.siyuan.languages.removeBookmark.replace("${x}", `<b>${escapeHtml(bookmarkText)}</b>`), () => {
|
||||
if (id) {
|
||||
fetchPost("/api/attr/setBlockAttrs", {id, attrs: {bookmark: ""}}, () => {
|
||||
bookmarkObj.update();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue