Diallows naming duplication when duplicating a space, and adds a proper suffix to the name in case of another spaces having a name match.

This commit is contained in:
Faris Armoush
2025-07-27 10:51:53 +03:00
parent f1cf8d88d3
commit 83895d3dda
5 changed files with 118 additions and 25 deletions

View File

@ -49,8 +49,8 @@ class CommunityStructureHeaderActionButtonsComposer extends StatelessWidget {
context: context,
builder: (_) => DuplicateSpaceDialog(
initialName: space.spaceName,
selectedSpaceUuid: space.uuid,
selectedCommunityUuid: selectedCommunity.uuid,
selectedSpace: space,
selectedCommunity: selectedCommunity,
onSuccess: (spaces) {
final updatedCommunity = selectedCommunity.copyWith(
spaces: spaces,