Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 推送更改db图标

Vanessa8d221c8a004d
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 955dc2a050..e4dc0173d9 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -476,6 +476,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
let nameHTML = "";
let aliasHTML = "";
let memoHTML = "";
+ let avHTML = "";
Object.keys(data.new).forEach(key => {
attrsResult[key] = data.new[key];
const escapeHTML = Lute.EscapeHTMLStr(data.new[key]);
@@ -488,10 +489,10 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
} else if (key === "memo") {
memoHTML = `<div class="protyle-attr--memo b3-tooltips b3-tooltips__sw" aria-label="${escapeHTML}"><svg><use xlink:href="#iconM"></use></svg></div>`;
} else if (key === "custom-avs") {
- memoHTML = "<div class=\"protyle-attr--av\"><svg><use xlink:href=\"#iconDatabase\"></use></svg></div>";
+ avHTML = "<div class=\"protyle-attr--av\"><svg><use xlink:href=\"#iconDatabase\"></use></svg></div>";
}
});
- let nodeAttrHTML = bookmarkHTML + nameHTML + aliasHTML + memoHTML;
+ let nodeAttrHTML = bookmarkHTML + nameHTML + aliasHTML + memoHTML + avHTML;
if (protyle.block.rootID === operation.id) {
// 文档
if (protyle.title) {