Make the broadcast dashboard update via AJAX

Same technique as we use for other pages that update via AJAX.

I’ve split the page up into separate chunks because the DiffDOM library
we use finds it easier to work out what’s changed when there are fewer
elements/a shallower tree.
This commit is contained in:
Chris Hill-Scott
2020-07-14 13:39:29 +01:00
parent 414e4b5834
commit 5229373341
5 changed files with 104 additions and 47 deletions

View File

@@ -353,6 +353,7 @@ class HeaderNavigation(Navigation):
'who_can_use_notify',
'who_its_for',
'broadcast_dashboard',
'broadcast_dashboard_updates',
'broadcast',
'preview_broadcast_areas',
'choose_broadcast_library',
@@ -373,6 +374,7 @@ class MainNavigation(Navigation):
mapping = {
'dashboard': {
'broadcast_dashboard',
'broadcast_dashboard_updates',
'conversation',
'inbox',
'monthly',
@@ -697,6 +699,7 @@ class CaseworkNavigation(Navigation):
mapping = {
'dashboard': {
'broadcast_dashboard',
'broadcast_dashboard_updates',
},
'send-one-off': {
'choose_from_contact_list',
@@ -1322,6 +1325,7 @@ class OrgNavigation(Navigation):
'who_can_use_notify',
'who_its_for',
'broadcast_dashboard',
'broadcast_dashboard_updates',
'broadcast',
'preview_broadcast_areas',
'choose_broadcast_library',