From 7f76f0c64c06b2b6078d2e511b92c84f502b63f8 Mon Sep 17 00:00:00 2001 From: A R R R Associates Date: Fri, 10 Jul 2026 12:29:34 +0530 Subject: [PATCH] Fix optional domain context in shared navigation layout --- app/ui/templates/base/layout.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/ui/templates/base/layout.html b/app/ui/templates/base/layout.html index c685ea1..b301bfd 100644 --- a/app/ui/templates/base/layout.html +++ b/app/ui/templates/base/layout.html @@ -118,7 +118,7 @@ {% if not current_firm_name %}{% set current_firm_name = "Audit Firm ERP" %}{% endif %} {% set current_branch_name = (firm_branding.branch_name|default("", true)) if firm_branding else "" %} {% set current_firm_logo_url = (firm_branding.logo_url|default("", true)) if firm_branding else "" %} - {% set domain_context = get_domain_context(request) %} + {% set domain_is_resolved = ((get_domain_context(request)|default({}, true)).get("is_resolved", false)) %} {% set is_system_admin_user = full_auth and ("System Admin" in ui_roles) %} {% set can_manage_local_storage_agent = full_auth and can_view_documents(current_user, ui_perms, ui_roles) and can_upload_documents(current_user, ui_perms, ui_roles) and (ui_roles|select("in", ["Firm Admin", "Partner", "Branch Manager"])|list|length > 0) %} {# Navigation UI Cleanup V2.1 @@ -135,7 +135,7 @@ {% if current_firm_logo_url %}{{ current_firm_name }} logo{% else %}
{{ (current_firm_name[:2] if current_firm_name else 'AF')|upper }}
{% endif %}
{{ current_firm_name }}
-
{% if full_auth %}{{ current_branch_name }}{% if current_branch_name and current_branch_name != "-" %} Branch{% endif %} • Workspace{% elif domain_context.is_resolved %}{{ current_branch_name or 'Domain Workspace' }}{% else %}Secure Practice Workspace{% endif %}
+
{% if full_auth %}{{ current_branch_name }}{% if current_branch_name and current_branch_name != "-" %} Branch{% endif %} • Workspace{% elif domain_is_resolved %}{{ current_branch_name or 'Domain Workspace' }}{% else %}Secure Practice Workspace{% endif %}
@@ -458,7 +458,7 @@ {% endif %} {% else %} - {% if domain_context.is_resolved %} + {% if domain_is_resolved %}
{{ current_firm_name }}{% if current_branch_name %} • {{ current_branch_name }}{% endif %}
{% endif %} Login