feat(ui/templates): new-folder, new-template, move-template dialogs

This commit is contained in:
Joseph Doherty
2026-05-11 11:18:36 -04:00
parent 39e6e0a525
commit fc105acd7c
3 changed files with 209 additions and 4 deletions

View File

@@ -30,6 +30,7 @@ public class TemplateService
string? description,
int? parentTemplateId,
string user,
int? folderId = null,
CancellationToken cancellationToken = default)
{
if (string.IsNullOrWhiteSpace(name))
@@ -46,7 +47,8 @@ public class TemplateService
var template = new Template(name)
{
Description = description,
ParentTemplateId = parentTemplateId
ParentTemplateId = parentTemplateId,
FolderId = folderId
};
// Check acyclicity (inheritance) — for new templates this is mostly a parent-exists check,