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); + }) } };