mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Changes by alex
This commit is contained in:
@@ -40,6 +40,8 @@ import { ObjectCacheService } from '../../../core/cache/object-cache.service';
|
||||
* Component listing all available versions of the history the provided item is a part of
|
||||
*/
|
||||
export class ItemVersionsComponent implements OnInit {
|
||||
|
||||
|
||||
/**
|
||||
* The item to display a version history for
|
||||
*/
|
||||
@@ -62,6 +64,8 @@ export class ItemVersionsComponent implements OnInit {
|
||||
*/
|
||||
@Input() displayActions: boolean;
|
||||
|
||||
subs: Subscription[] = [];
|
||||
|
||||
/**
|
||||
* The AlertType enumeration
|
||||
* @type {AlertType}
|
||||
@@ -118,6 +122,38 @@ export class ItemVersionsComponent implements OnInit {
|
||||
[itemId: string]: string
|
||||
}>;
|
||||
|
||||
/**
|
||||
* Emits when the versionsRD$ must be refreshed.
|
||||
*/
|
||||
refreshSubject = new BehaviorSubject<any>(null);
|
||||
|
||||
/**
|
||||
* The number of the version whose summary is currently being edited
|
||||
*/
|
||||
versionBeingEditedNumber: string;
|
||||
|
||||
/**
|
||||
* The id of the version whose summary is currently being edited
|
||||
*/
|
||||
versionBeingEditedId: string;
|
||||
|
||||
// itemLink: string; TODO delete
|
||||
|
||||
/**
|
||||
* The summary currently being edited
|
||||
*/
|
||||
versionBeingEditedSummary: string;
|
||||
|
||||
|
||||
/**
|
||||
* Cancel the current edit when component is destroyed & unsub all subscriptions
|
||||
*/
|
||||
// @HostListener('document:keydown:enter')
|
||||
// onSummarySubmitKeydownEvent(event: KeyboardEvent): void {
|
||||
// event.preventDefault();
|
||||
// }
|
||||
|
||||
|
||||
constructor(private versionHistoryService: VersionHistoryDataService,
|
||||
private versionService: VersionDataService,
|
||||
private itemService: ItemDataService,
|
||||
|
Reference in New Issue
Block a user