mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 16:18:25 -04:00
Allow users to navigate folders when copying
We already have a pattern for navigation folders and searching for templates – let’s use it for the copy page too. And I reckon we can represent services as folders if the user has multiple services they could copy a template from.
This commit is contained in:
@@ -28,9 +28,9 @@ def _folder(name, folder_id=None, parent=None):
|
||||
}
|
||||
|
||||
|
||||
def _template(template_type, name, parent=None):
|
||||
def _template(template_type, name, parent=None, template_id=None):
|
||||
return {
|
||||
'id': str(uuid.uuid4()),
|
||||
'id': template_id or str(uuid.uuid4()),
|
||||
'name': name,
|
||||
'template_type': template_type,
|
||||
'folder': parent,
|
||||
|
||||
Reference in New Issue
Block a user