mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
49 lines
1.7 KiB
TypeScript
49 lines
1.7 KiB
TypeScript
import { AsyncPipe } from '@angular/common';
|
|
import { Component } from '@angular/core';
|
|
import {
|
|
ActivatedRoute,
|
|
Router,
|
|
} from '@angular/router';
|
|
import {
|
|
TranslateModule,
|
|
TranslateService,
|
|
} from '@ngx-translate/core';
|
|
|
|
import { DSONameService } from '../../core/breadcrumbs/dso-name.service';
|
|
import { CollectionDataService } from '../../core/data/collection-data.service';
|
|
import { Collection } from '../../core/shared/collection.model';
|
|
import { BtnDisabledDirective } from '../../shared/btn-disabled.directive';
|
|
import { DeleteComColPageComponent } from '../../shared/comcol/comcol-forms/delete-comcol-page/delete-comcol-page.component';
|
|
import { NotificationsService } from '../../shared/notifications/notifications.service';
|
|
import { VarDirective } from '../../shared/utils/var.directive';
|
|
|
|
/**
|
|
* Component that represents the page where a user can delete an existing Collection
|
|
*/
|
|
@Component({
|
|
selector: 'ds-delete-collection',
|
|
styleUrls: ['./delete-collection-page.component.scss'],
|
|
templateUrl: './delete-collection-page.component.html',
|
|
imports: [
|
|
TranslateModule,
|
|
AsyncPipe,
|
|
VarDirective,
|
|
BtnDisabledDirective,
|
|
],
|
|
standalone: true,
|
|
})
|
|
export class DeleteCollectionPageComponent extends DeleteComColPageComponent<Collection> {
|
|
protected frontendURL = '/collections/';
|
|
|
|
public constructor(
|
|
protected dsoDataService: CollectionDataService,
|
|
public dsoNameService: DSONameService,
|
|
protected router: Router,
|
|
protected route: ActivatedRoute,
|
|
protected notifications: NotificationsService,
|
|
protected translate: TranslateService,
|
|
) {
|
|
super(dsoDataService, dsoNameService, router, route, notifications, translate);
|
|
}
|
|
}
|