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 { Context } from 'src/app/core/shared/context.model';
|
||||||
import { DSpaceObject } from '../../../../core/shared/dspace-object.model';
|
import { DSpaceObject } from '../../../../core/shared/dspace-object.model';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of MyDSpace Status Contexts
|
||||||
|
*/
|
||||||
const MY_DSPACE_STATUS_CONTEXTS = [
|
const MY_DSPACE_STATUS_CONTEXTS = [
|
||||||
Context.MyDSpaceArchived,
|
Context.MyDSpaceArchived,
|
||||||
Context.MyDSpaceWorkspace,
|
Context.MyDSpaceWorkspace,
|
||||||
@@ -11,15 +14,33 @@ const MY_DSPACE_STATUS_CONTEXTS = [
|
|||||||
Context.MyDSpaceWaitingController,
|
Context.MyDSpaceWaitingController,
|
||||||
Context.MyDSpaceValidation
|
Context.MyDSpaceValidation
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Component that renders all the badges for a listable object
|
||||||
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-badges',
|
selector: 'ds-badges',
|
||||||
templateUrl: './badges.component.html',
|
templateUrl: './badges.component.html',
|
||||||
styleUrls: ['./badges.component.scss']
|
styleUrls: ['./badges.component.scss']
|
||||||
})
|
})
|
||||||
export class BadgesComponent {
|
export class BadgesComponent {
|
||||||
|
/**
|
||||||
|
* The DSpaceObject to render the badge for
|
||||||
|
*/
|
||||||
@Input() object: DSpaceObject;
|
@Input() object: DSpaceObject;
|
||||||
|
/**
|
||||||
|
* The context that the badge is rendered in
|
||||||
|
*/
|
||||||
@Input() context?: Context;
|
@Input() context?: Context;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether or not to show the access status
|
||||||
|
*/
|
||||||
@Input() showAccessStatus = false;
|
@Input() showAccessStatus = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether or not this context is a MyDSpace status context
|
||||||
|
*/
|
||||||
get isMyDSpaceStatus(): boolean {
|
get isMyDSpaceStatus(): boolean {
|
||||||
return MY_DSPACE_STATUS_CONTEXTS.includes(this.context);
|
return MY_DSPACE_STATUS_CONTEXTS.includes(this.context);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user