mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
58522: implemented delete for coll and comms
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
import { RouteService } from '../../services/route.service';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { RemoteData } from '../../../core/data/remote-data';
|
||||
import { isNotUndefined } from '../../empty.util';
|
||||
@@ -29,7 +28,6 @@ export class EditComColPageComponent<TDomain extends DSpaceObject, TNormalized e
|
||||
|
||||
public constructor(
|
||||
protected dsoDataService: DataService<TNormalized, TDomain>,
|
||||
protected routeService: RouteService,
|
||||
protected router: Router,
|
||||
protected route: ActivatedRoute
|
||||
) {
|
||||
@@ -41,7 +39,7 @@ export class EditComColPageComponent<TDomain extends DSpaceObject, TNormalized e
|
||||
|
||||
/**
|
||||
* @param {TDomain} dso The updated version of the DSO
|
||||
* Updates an existing DSO based on the submitted user data and navigates to the editted object's home page
|
||||
* Updates an existing DSO based on the submitted user data and navigates to the edited object's home page
|
||||
*/
|
||||
onSubmit(dso: TDomain) {
|
||||
this.dsoDataService.update(dso)
|
||||
|
Reference in New Issue
Block a user