mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Added missing typedoc
This commit is contained in:
@@ -2,6 +2,9 @@ import { Component, Input } from '@angular/core';
|
||||
import { Context } from 'src/app/core/shared/context.model';
|
||||
import { DSpaceObject } from '../../../../core/shared/dspace-object.model';
|
||||
|
||||
/**
|
||||
* List of MyDSpace Status Contexts
|
||||
*/
|
||||
const MY_DSPACE_STATUS_CONTEXTS = [
|
||||
Context.MyDSpaceArchived,
|
||||
Context.MyDSpaceWorkspace,
|
||||
@@ -11,15 +14,33 @@ const MY_DSPACE_STATUS_CONTEXTS = [
|
||||
Context.MyDSpaceWaitingController,
|
||||
Context.MyDSpaceValidation
|
||||
];
|
||||
|
||||
/**
|
||||
* Component that renders all the badges for a listable object
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ds-badges',
|
||||
templateUrl: './badges.component.html',
|
||||
styleUrls: ['./badges.component.scss']
|
||||
})
|
||||
export class BadgesComponent {
|
||||
/**
|
||||
* The DSpaceObject to render the badge for
|
||||
*/
|
||||
@Input() object: DSpaceObject;
|
||||
/**
|
||||
* The context that the badge is rendered in
|
||||
*/
|
||||
@Input() context?: Context;
|
||||
|
||||
/**
|
||||
* Whether or not to show the access status
|
||||
*/
|
||||
@Input() showAccessStatus = false;
|
||||
|
||||
/**
|
||||
* Returns whether or not this context is a MyDSpace status context
|
||||
*/
|
||||
get isMyDSpaceStatus(): boolean {
|
||||
return MY_DSPACE_STATUS_CONTEXTS.includes(this.context);
|
||||
}
|
||||
|
Reference in New Issue
Block a user