Updating tests, but need to add a new one to test the new secondary navivation

This commit is contained in:
Jonathan Bobel
2024-01-04 15:23:01 -05:00
parent 7d6a07efd7
commit f1e678760b
3 changed files with 30 additions and 21 deletions

View File

@@ -117,18 +117,27 @@
"active": header_navigation.is_selected('user-profile')
}
] %}
{% set secondaryNavigation = [
{
"href": url_for('.service_settings', service_id=current_service.id),
"text": "Settings",
"active": secondary_navigation.is_selected('settings')
},
{
"href": url_for('main.sign_out'),
"text": "Sign out"
}
] %}
{% endif %}
{% if current_service %}
{% set secondaryNavigation = [
{
"href": url_for('main.service_settings', service_id=current_service.id),
"text": "Settings",
"active": secondary_navigation.is_selected('settings')
},
{
"href": url_for('main.sign_out'),
"text": "Sign out"
}
] %}
{% else %}
{% set secondaryNavigation = [
{
"href": url_for('main.sign_out'),
"text": "Sign out"
}
] %}
{% endif %}
{% endif %}
{% else %}
<!-- Add navigation back after pilot -->
{# {% set navigation = [