mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-28 22:30:44 -05:00
The search box should only be shown if there are too many items to quickly scan on the page. This number is judged to be 7; see the original PR for more context: https://github.com/alphagov/notifications-admin/pull/1195 This commit makes that logic work in the world of folders, by explicitly counting the templates shown on the screen, not all the templates a service has (which may be spread across multiple folders).