MCPcopy
hub / github.com/guaguaguaxia/weekly_report / handleDeleteTemplate

Function handleDeleteTemplate

components/TemplateManager.tsx:66–71  ·  view source on GitHub ↗
(templateId: string)

Source from the content-addressed store, hash-verified

64 };
65
66 const handleDeleteTemplate = (templateId: string) => {
67 if (window.confirm('确定要删除这个模板吗?')) {
68 TemplateStorage.deleteCustomTemplate(templateId);
69 loadTemplates();
70 }
71 };
72
73 const handleEditTemplate = (template: Template) => {
74 setEditingTemplate(template);

Callers 1

TemplateManagerFunction · 0.85

Calls 2

deleteCustomTemplateMethod · 0.80
loadTemplatesFunction · 0.70

Tested by

no test coverage detected