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
feat(script-deployer): make notes read-only
Elian Doran7cf5e7f1d9e1
diff --git a/apps/script-deployer/src/deploy.ts b/apps/script-deployer/src/deploy.tsindex 704c59a2f5..71541e5112 100644--- a/apps/script-deployer/src/deploy.ts+++ b/apps/script-deployer/src/deploy.ts@@ -151,6 +151,7 @@ export interface DeployResult {const PASSTHROUGH_LABELS = ["run", "executeButton", "executeDescription", "executeTitle"] as const;function applyLabels(note: BeccaLike["notes"][string], meta: ScriptMeta) {+ note.setLabel("readOnly");for (const label of PASSTHROUGH_LABELS) {if (meta[label]) {note.setLabel(label, meta[label]);