From 81aabb164843f319294c2762d15567d48c4a62df Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Wed, 12 Feb 2025 18:59:11 +0000 Subject: [PATCH] templates: grants_table_scripts: Use the existing property for if widget The template is loaded with "with widget=true/false" when it is in widget mode so we can use this value as the SSOT. --- .../frontend/templates/components/grants_table_scripts.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/grantnav/frontend/templates/components/grants_table_scripts.html b/grantnav/frontend/templates/components/grants_table_scripts.html index 06361b62..d9ee678f 100644 --- a/grantnav/frontend/templates/components/grants_table_scripts.html +++ b/grantnav/frontend/templates/components/grants_table_scripts.html @@ -3,6 +3,7 @@ @@ -29,11 +30,13 @@ {% endif %} +{{ widget|default:False|json_script:"is-widget-status" }} +