Skip to content

Build your personal knowledge base with Trilium Notes

feat(script-deployer): make notes read-only

Elian Doran7cf5e7f1d9e1
diff --git a/apps/script-deployer/src/deploy.ts b/apps/script-deployer/src/deploy.ts
index 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]);