729 B
729 B
<%* // actionable removal: removes action fields and the actionable component marker. const componentName = "actionable"; const file = tp.file.find_tfile(tp.file.path(true));
setTimeout(async () => { await tp.app.fileManager.processFrontMatter(file, (frontmatter) => { const components = Array.isArray(frontmatter["components"]) ? frontmatter["components"] : []; frontmatter["components"] = components.filter((component) => component !== componentName);
delete frontmatter["action_status"];
delete frontmatter["action_impact"];
delete frontmatter["action_effort_minutes"];
delete frontmatter["action_blocked_by"];
delete frontmatter["action_waiting_for"];
delete frontmatter["action_result"];
});
}, 300) -%>