mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Only show relevant folders
A folder is relevant if it, or any of its descents contain a template of the kind you’re looking for. If you’re not filtering by template type then you should see all folders.
This commit is contained in:
@@ -126,7 +126,7 @@ def choose_template(service_id, template_type='all', template_folder_id=None):
|
||||
current_template_folder_id=template_folder_id,
|
||||
can_manage_folders=can_manage_folders(),
|
||||
template_folder_path=current_service.get_template_folder_path(template_folder_id),
|
||||
template_folders=current_service.get_template_folders(template_folder_id),
|
||||
template_folders=current_service.get_template_folders(template_folder_id, template_type),
|
||||
templates=current_service.get_templates(template_type, template_folder_id),
|
||||
show_search_box=(len(current_service.get_templates(template_type)) > 7),
|
||||
show_template_nav=(
|
||||
|
||||
Reference in New Issue
Block a user