74179: NameAlreadyInUse check removed since not correctly shown if there are similarly named groups (group name search not exact)

This commit is contained in:
Marie Verdonck
2020-11-02 13:00:33 +01:00
parent 3c20cb7ee1
commit 1fcd4d6c3e

View File

@@ -265,7 +265,6 @@ export class GroupFormComponent implements OnInit, OnDestroy {
});
const response = this.groupDataService.updateGroup(editedGroup);
response.pipe(take(1)).subscribe((restResponse: RestResponse) => {
console.log('resp', restResponse)
if (restResponse.isSuccessful) {
this.notificationsService.success(this.translateService.get(this.messagePrefix + '.notification.edited.success', { name: editedGroup.name }));
this.submitForm.emit(editedGroup);
@@ -274,10 +273,6 @@ export class GroupFormComponent implements OnInit, OnDestroy {
this.cancelForm.emit();
}
});
if (this.groupName.value != null && this.groupName.value !== group.name) {
this.showNotificationIfNameInUse(editedGroup, 'edited');
}
}
/**