mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
25 lines
564 B
TypeScript
25 lines
564 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
import { Item } from '../../core/shared/item.model';
|
|
import { AlertType } from '../../shared/alert/aletr-type';
|
|
|
|
@Component({
|
|
selector: 'ds-item-alerts',
|
|
templateUrl: './item-alerts.component.html',
|
|
styleUrls: ['./item-alerts.component.scss']
|
|
})
|
|
/**
|
|
* Component displaying alerts for an item
|
|
*/
|
|
export class ItemAlertsComponent {
|
|
/**
|
|
* The Item to display alerts for
|
|
*/
|
|
@Input() item: Item;
|
|
|
|
/**
|
|
* The AlertType enumeration
|
|
* @type {AlertType}
|
|
*/
|
|
public AlertTypeEnum = AlertType;
|
|
}
|