mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
96252: Move Item page components out of SharedModule
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { Component, EventEmitter, Output } from '@angular/core';
|
||||
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-item-versions-delete-modal',
|
||||
templateUrl: './item-versions-delete-modal.component.html',
|
||||
styleUrls: ['./item-versions-delete-modal.component.scss']
|
||||
})
|
||||
export class ItemVersionsDeleteModalComponent {
|
||||
/**
|
||||
* An event fired when the cancel or confirm button is clicked, with respectively false or true
|
||||
*/
|
||||
@Output()
|
||||
response = new EventEmitter<boolean>();
|
||||
|
||||
versionNumber: number;
|
||||
|
||||
constructor(
|
||||
protected activeModal: NgbActiveModal,) {
|
||||
}
|
||||
|
||||
onModalClose() {
|
||||
this.response.emit(false);
|
||||
this.activeModal.dismiss();
|
||||
}
|
||||
|
||||
onModalSubmit() {
|
||||
this.response.emit(true);
|
||||
this.activeModal.close();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user