mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
74179: NameAlreadyInUse check removed since not correctly shown if there are similarly named groups (group name search not exact)
This commit is contained in:
@@ -265,7 +265,6 @@ export class GroupFormComponent implements OnInit, OnDestroy {
|
|||||||
});
|
});
|
||||||
const response = this.groupDataService.updateGroup(editedGroup);
|
const response = this.groupDataService.updateGroup(editedGroup);
|
||||||
response.pipe(take(1)).subscribe((restResponse: RestResponse) => {
|
response.pipe(take(1)).subscribe((restResponse: RestResponse) => {
|
||||||
console.log('resp', restResponse)
|
|
||||||
if (restResponse.isSuccessful) {
|
if (restResponse.isSuccessful) {
|
||||||
this.notificationsService.success(this.translateService.get(this.messagePrefix + '.notification.edited.success', { name: editedGroup.name }));
|
this.notificationsService.success(this.translateService.get(this.messagePrefix + '.notification.edited.success', { name: editedGroup.name }));
|
||||||
this.submitForm.emit(editedGroup);
|
this.submitForm.emit(editedGroup);
|
||||||
@@ -274,10 +273,6 @@ export class GroupFormComponent implements OnInit, OnDestroy {
|
|||||||
this.cancelForm.emit();
|
this.cancelForm.emit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.groupName.value != null && this.groupName.value !== group.name) {
|
|
||||||
this.showNotificationIfNameInUse(editedGroup, 'edited');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user