We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87cb4c5 commit f465a01Copy full SHA for f465a01
1 file changed
src/EventLogExpert/Shared/Components/Filters/FilterGroup.razor.cs
@@ -114,7 +114,19 @@ private async Task RenameGroup()
114
{
115
var newName = await AlertDialogService.DisplayPrompt("Group Name", "What would you like to name this group?", Group.Name);
116
117
- if (string.IsNullOrEmpty(newName) || string.Equals(newName, Group.Name)) { return; }
+ if (string.IsNullOrEmpty(newName))
118
+ {
119
+ await AlertDialogService.ShowAlert("Rename Failed", "Name cannot be empty", "OK");
120
+
121
+ return;
122
+ }
123
124
+ if (string.Equals(newName, Group.Name))
125
126
+ await AlertDialogService.ShowAlert("Rename Failed", "Name cannot be the same as previous name", "OK");
127
128
129
130
131
Dispatcher.Dispatch(new FilterGroupAction.SetGroup(Group with { Name = newName }));
132
}
0 commit comments