diff --git a/src/app/+admin/admin-search-page/admin-search-results/item-admin-search-result-actions.component.ts b/src/app/+admin/admin-search-page/admin-search-results/item-admin-search-result-actions.component.ts index e8ce31bcf6..40cddc816d 100644 --- a/src/app/+admin/admin-search-page/admin-search-results/item-admin-search-result-actions.component.ts +++ b/src/app/+admin/admin-search-page/admin-search-results/item-admin-search-result-actions.component.ts @@ -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 */ diff --git a/src/app/shared/translate/missing-translation.helper.ts b/src/app/shared/translate/missing-translation.helper.ts index f071652cef..71a1dc3620 100644 --- a/src/app/shared/translate/missing-translation.helper.ts +++ b/src/app/shared/translate/missing-translation.helper.ts @@ -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;