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:
@@ -17,11 +17,19 @@ import {
|
|||||||
templateUrl: './item-admin-search-result-actions.component.html'
|
templateUrl: './item-admin-search-result-actions.component.html'
|
||||||
})
|
})
|
||||||
/**
|
/**
|
||||||
* The component for displaying a list element for an item search result on the admin search page
|
* The component for displaying the actions for a list element for an item search result on the admin search page
|
||||||
*/
|
*/
|
||||||
export class ItemAdminSearchResultActionsComponent {
|
export class ItemAdminSearchResultActionsComponent {
|
||||||
|
/**
|
||||||
|
* The item to perform the actions on
|
||||||
|
*/
|
||||||
@Input() public item: Item;
|
@Input() public item: Item;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether or not to use small buttons
|
||||||
|
*/
|
||||||
@Input() public small: boolean;
|
@Input() public small: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the path to the edit page of this item
|
* Returns the path to the edit page of this item
|
||||||
*/
|
*/
|
||||||
|
@@ -1,6 +1,14 @@
|
|||||||
import { MissingTranslationHandler, MissingTranslationHandlerParams } from '@ngx-translate/core';
|
import { MissingTranslationHandler, MissingTranslationHandlerParams } from '@ngx-translate/core';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class to handle missing translations for the ngx-translate library
|
||||||
|
*/
|
||||||
export class MissingTranslationHelper implements MissingTranslationHandler {
|
export class MissingTranslationHelper implements MissingTranslationHandler {
|
||||||
|
/**
|
||||||
|
* Called when there is not translation for a specific key
|
||||||
|
* Will return the 'default' parameter of the translate pipe, if there is one available
|
||||||
|
* @param params
|
||||||
|
*/
|
||||||
handle(params: MissingTranslationHandlerParams) {
|
handle(params: MissingTranslationHandlerParams) {
|
||||||
if (params.interpolateParams) {
|
if (params.interpolateParams) {
|
||||||
return (params.interpolateParams as any).default || params.key;
|
return (params.interpolateParams as any).default || params.key;
|
||||||
|
Reference in New Issue
Block a user