Skip to content

Commit e6b4d02

Browse files
committed
apps/dashboard: add identifier to module menu
1 parent 2bff5b4 commit e6b4d02

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

adhocracy4/dashboard/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def get_project_menu(self, current_component):
112112
project_menu.append(
113113
{
114114
"label": component.label,
115+
"identifier": component.identifier,
115116
"is_active": is_active,
116117
"url": url,
117118
"is_complete": is_complete,

changelog/ST-845.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Fixed
2+
3+
- Added identifier for dashboard project module menu so translation doesn't break conditional display of "Location"

tests/dashboard/test_project_dashboard.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def test_menu(module, dashboard_test_component_factory):
6767
project_component = project_components[0]
6868
assert project_dashboard.get_project_menu(project_component) == [
6969
{
70+
"identifier": project_component.identifier,
7071
"label": project_component.label,
7172
"is_active": True,
7273
"url": "pc1_url",

0 commit comments

Comments
 (0)