added missing typedoc

This commit is contained in:
lotte
2020-03-16 08:17:16 +01:00
parent 48b80c6a38
commit 930624fd19
2 changed files with 17 additions and 1 deletions

View File

@@ -17,11 +17,19 @@ import {
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 {
/**
* The item to perform the actions on
*/
@Input() public item: Item;
/**
* Whether or not to use small buttons
*/
@Input() public small: boolean;
/**
* Returns the path to the edit page of this item
*/

View File

@@ -1,6 +1,14 @@
import { MissingTranslationHandler, MissingTranslationHandlerParams } from '@ngx-translate/core';
/**
* Class to handle missing translations for the ngx-translate library
*/
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) {
if (params.interpolateParams) {
return (params.interpolateParams as any).default || params.key;