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
fix(options/etapi): comments being visible to the user
Elian Doranfd66da95f3d4
diff --git a/src/public/app/widgets/type_widgets/options/etapi.ts b/src/public/app/widgets/type_widgets/options/etapi.tsindex fc6336f3ca..36a37cc276 100644--- a/src/public/app/widgets/type_widgets/options/etapi.ts+++ b/src/public/app/widgets/type_widgets/options/etapi.ts@@ -9,11 +9,10 @@ const TPL = `<div class="options-section"><h4>${t("etapi.title")}</h4>- // TriliumNextTODO: src/public/app/services/link.ts -> prevents regular click behavior on "a" element here- // because it is a relative path, and not a URL starting with http(s) -> onclick="window.open(...)" is used as workaround for now<p>${t("etapi.description")} <br/>${t("etapi.see_more", {link_to_wiki: `<a class="tn-link" href="https://triliumnext.github.io/Docs/Wiki/etapi.html">${t("etapi.wiki")}</a>`,+ // TODO: We use window.open src/public/app/services/link.ts -> prevents regular click behavior on "a" element here because it's a relative pathlink_to_openapi_spec: `<a class="tn-link" onclick="window.open('etapi/etapi.openapi.yaml')" href="etapi/etapi.openapi.yaml">${t("etapi.openapi_spec")}</a>`,link_to_swagger_ui: `<a class="tn-link" href="#_help_f3xpgx6H01PW">${t("etapi.swagger_ui")}</a>`})}