Skip to content

Commit f773dca

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

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
@@ -88,6 +88,7 @@ def test_menu(module, dashboard_test_component_factory):
8888
assert project_dashboard.get_menu(None, project_component) == {
8989
"project": [
9090
{
91+
"identifier": project_component.identifier,
9192
"label": project_component.label,
9293
"is_active": True,
9394
"url": "pc1_url",

0 commit comments

Comments
 (0)