Skip to content

Commit ffbb200

Browse files
authored
Mention "template" in label for rel pointing to templates (#5923)
1 parent 5ac76c1 commit ffbb200

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/infrahub/core/schema/schema_branch.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,6 +1859,9 @@ def add_relationships_to_template(self, node: NodeSchema) -> None:
18591859
identifier=self._generate_identifier_string(template_schema.kind, rel_template_peer),
18601860
min_count=relationship.min_count,
18611861
max_count=relationship.max_count,
1862+
label=f"{relationship.name} template".title()
1863+
if relationship.kind in [RelationshipKind.COMPONENT, RelationshipKind.PARENT]
1864+
else relationship.name.title(),
18621865
)
18631866
)
18641867

0 commit comments

Comments
 (0)