Skip to content

Commit 319c43c

Browse files
kebetsisonartech
authored andcommitted
SONARCH-1481 Model: Implement validation and show toast with error (#3587)
GitOrigin-RevId: d9ac962d532828b102b36d8d25e6f9691bdea723
1 parent c5551f9 commit 319c43c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

libs/sq-server-commons/src/l10n/default.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,11 +1991,17 @@ export const defaultMessages = {
19911991
'architecture.page.model.label': 'Model',
19921992
'architecture.page.model.invalid_groups':
19931993
'Invalid {groupsCount, plural, one {group} other {groups}}: {groups}',
1994-
'architecture.page.model.duplicate_connection':
1995-
'A connection between "{source}" and "{target}" already exists',
1996-
'architecture.page.model.same_source_and_target': 'A group cannot be connected to itself',
1997-
'architecture.page.model.source_and_target_are_not_siblings':
1998-
'A group cannot be connected to a group that is not a sibling',
1994+
'architecture.page.model.errors.constraint.duplicate':
1995+
'A relationship between "{source}" and "{target}" is already allowed.',
1996+
'architecture.page.model.errors.constraint.same_source_and_target':
1997+
'A relationship between the same source and target is invalid.',
1998+
'architecture.page.model.errors.constraint.source_and_target_are_not_siblings':
1999+
'A component cannot be related to a component that is not a sibling.',
2000+
'architecture.page.model.errors.group.empty_label':
2001+
'A component cannot have an empty name: {nodeKey}.',
2002+
'architecture.page.model.errors.group.duplicate_sibling_labels':
2003+
'Two sibling components cannot have the same name: "{nodeKey}".',
2004+
'architecture.page.model.errors.invalid_model': 'Unable to change model. {errors}',
19992005
'architecture.page.model.modal.edit_component.title': 'Edit Component',
20002006
'architecture.page.model.modal.edit_component.description':
20012007
'Edit the component and its code artifacts.',

0 commit comments

Comments
 (0)