mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
refactored resource type and type mapping
This commit is contained in:
@@ -47,10 +47,10 @@ export class DeleteComColPageComponent<TDomain extends DSpaceObject> implements
|
||||
.pipe(first())
|
||||
.subscribe((success: boolean) => {
|
||||
if (success) {
|
||||
const successMessage = this.translate.instant(dso.type + '.delete.notification.success');
|
||||
const successMessage = this.translate.instant((dso as any).type + '.delete.notification.success');
|
||||
this.notifications.success(successMessage)
|
||||
} else {
|
||||
const errorMessage = this.translate.instant(dso.type + '.delete.notification.fail');
|
||||
const errorMessage = this.translate.instant((dso as any).type + '.delete.notification.fail');
|
||||
this.notifications.error(errorMessage)
|
||||
}
|
||||
this.router.navigate(['/']);
|
||||
|
Reference in New Issue
Block a user