Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(client/active_badges): disable toggle for web view & render note
Elian Doran7a534c3ea760
diff --git a/apps/client/src/widgets/layout/ActiveContentBadges.tsx b/apps/client/src/widgets/layout/ActiveContentBadges.tsxindex 978fe7ef03..0ffad6c1fe 100644--- a/apps/client/src/widgets/layout/ActiveContentBadges.tsx+++ b/apps/client/src/widgets/layout/ActiveContentBadges.tsx@@ -231,11 +231,9 @@ function useActiveContentInfo(note: FNote | null | undefined) {if (note.type === "render") {type = "renderNote";isEnabled = note.hasRelation("renderNote");- canToggleEnabled = note.hasRelation("renderNote") || note.hasRelation("disabled:renderNote");} else if (note.type === "webView") {type = "webView";isEnabled = note.hasLabel("webViewSrc");- canToggleEnabled = note.hasLabelOrDisabled("webViewSrc");} else if (note.type === "code" && note.mime === "application/javascript;env=backend") {type = "backendScript";for (const backendLabel of [ "run", "customRequestHandler", "customResourceProvider" ]) {