Skip to content

Commit

Permalink
fixed link + added icons in new menu (#4575)
Browse files Browse the repository at this point in the history
* fix branches link in new menu
* added icons on internal menu items
  • Loading branch information
bilalabbad authored and wartraxx51 committed Oct 9, 2024
1 parent 0cef83d commit 556e9e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion backend/infrahub/menu/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str:
namespace="Builtin",
name="ObjectManagement",
label="Object Management",
icon="mdi:cube-outline",
protected=True,
section=MenuSection.INTERNAL,
order_weight=1000,
Expand Down Expand Up @@ -73,6 +74,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str:
namespace="Builtin",
name="ChangeControl",
label="Change Control",
icon="mdi:compare-vertical",
protected=True,
section=MenuSection.INTERNAL,
order_weight=2000,
Expand All @@ -81,7 +83,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str:
namespace="Builtin",
name="Branches",
label="Branches",
path="/branche",
path="/branches",
icon="mdi:layers-triple",
protected=True,
section=MenuSection.INTERNAL,
Expand Down Expand Up @@ -123,6 +125,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str:
namespace="Builtin",
name="UnifiedStorage",
label="Unified Storage",
icon="mdi:archive-arrow-down-outline",
protected=True,
section=MenuSection.INTERNAL,
order_weight=3000,
Expand Down Expand Up @@ -163,6 +166,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str:
namespace="Builtin",
name="Admin",
label="Admin",
icon="mdi:settings-outline",
protected=True,
section=MenuSection.INTERNAL,
order_weight=3000,
Expand Down
4 changes: 2 additions & 2 deletions backend/tests/unit/graphql/mutations/test_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def test_menu_update_protected(db: InfrahubDatabase, register_core_models_
namespace="Builtin",
name="Branches",
label="Branches",
path="/branche",
path="/branches",
icon="mdi:layers-triple",
protected=True,
section=MenuSection.INTERNAL,
Expand Down Expand Up @@ -83,7 +83,7 @@ async def test_menu_delete_protected(db: InfrahubDatabase, register_core_models_
namespace="Builtin",
name="Branches",
label="Branches",
path="/branche",
path="/branches",
icon="mdi:layers-triple",
protected=True,
section=MenuSection.INTERNAL,
Expand Down

0 comments on commit 556e9e9

Please sign in to comment.