Added missing typedoc

This commit is contained in:
lotte
2023-04-13 16:12:49 +02:00
parent 17782b80cd
commit 8136826c6d

View File

@@ -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);
}