mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 00:43:11 -04:00
Refine empty folder message
If the folder is completely empty, always say ‘This folder is empty’, so we don’t suggest that you can click around and find other things. If the current view is filtered, but there are templates available in other filters, say ‘There are no text message templates in this folder’ to make it clear why you can’t see anything.
This commit is contained in:
@@ -128,6 +128,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_folder_has_contents=current_service.get_template_folders_and_templates('all', template_folder_id),
|
||||
template_folders=current_service.get_template_folders(template_type, template_folder_id),
|
||||
templates=templates_on_page,
|
||||
show_search_box=(len(templates_on_page) > 7),
|
||||
|
||||
Reference in New Issue
Block a user