mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 13:03:04 +00:00
DURACOM-235 Removed extra navigation that was breaking community edit behaviour
This commit is contained in:
@@ -66,9 +66,6 @@ export class ComcolMetadataComponent<TDomain extends Community | Collection> imp
|
|||||||
this.dsoDataService.patch(event.dso, event.operations).pipe(getFirstCompletedRemoteData())
|
this.dsoDataService.patch(event.dso, event.operations).pipe(getFirstCompletedRemoteData())
|
||||||
.subscribe(async (response: RemoteData<DSpaceObject>) => {
|
.subscribe(async (response: RemoteData<DSpaceObject>) => {
|
||||||
if (response.hasSucceeded) {
|
if (response.hasSucceeded) {
|
||||||
if (!newLogo && !deleteLogo) {
|
|
||||||
await this.router.navigate([this.frontendURL + event.dso.uuid]);
|
|
||||||
}
|
|
||||||
this.notificationsService.success(null, this.translate.get(`${this.type.value}.edit.notifications.success`));
|
this.notificationsService.success(null, this.translate.get(`${this.type.value}.edit.notifications.success`));
|
||||||
} else if (response.statusCode === 403) {
|
} else if (response.statusCode === 403) {
|
||||||
this.notificationsService.error(null, this.translate.get(`${this.type.value}.edit.notifications.unauthorized`));
|
this.notificationsService.error(null, this.translate.get(`${this.type.value}.edit.notifications.unauthorized`));
|
||||||
@@ -80,7 +77,7 @@ export class ComcolMetadataComponent<TDomain extends Community | Collection> imp
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Navigate to the home page of the object
|
* Navigate to the relative DSO page
|
||||||
*/
|
*/
|
||||||
navigateToHomePage() {
|
navigateToHomePage() {
|
||||||
this.dsoRD$.pipe(
|
this.dsoRD$.pipe(
|
||||||
|
Reference in New Issue
Block a user