From 2f0f563e121ceacdf0ca0e1f53b6718812f0d5e7 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 13 Oct 2023 23:25:58 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9419 --- app/src/protyle/render/av/render.ts | 1 + app/src/protyle/wysiwyg/transaction.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts index d5c102905..97520c724 100644 --- a/app/src/protyle/render/av/render.ts +++ b/app/src/protyle/render/av/render.ts @@ -261,6 +261,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => { } titleElement.textContent = operation.data; titleElement.dataset.title = operation.data; + item.querySelector(".layout-tab-bar .item__text").textContent = operation.data; }); } else { Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${avId}"]`)).forEach((item: HTMLElement) => { diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index 9d2b12043..886d09d37 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -713,6 +713,10 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo: "setAttrViewSorts", "setAttrViewColCalc", "removeAttrViewCol", "updateAttrViewColNumberFormat", "removeAttrViewBlock", "replaceAttrViewBlock", "updateAttrViewColTemplate", "setAttrViewColIcon"].includes(operation.action)) { refreshAV(protyle, operation); + } else if (operation.action === "doUpdateUpdated") { + updateElements.forEach(item => { + item.setAttribute("updated", operation.data); + }) } };