feat(ui/templates): new-folder, new-template, move-template dialogs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user