mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
[ACS-7678] Convert content pipes to standalone (#9562)
* standalone pipes for content services * remove useless module [ci:force] * bug fixes [ci:force] * bug fixes and cleanup [ci:force] * cleanup unused/dead code [ci:force]
This commit is contained in:
@@ -20,12 +20,11 @@ import { TranslationService } from '@alfresco/adf-core';
|
||||
|
||||
@Pipe({
|
||||
name: 'adfFileUploadError',
|
||||
pure: true
|
||||
pure: true,
|
||||
standalone: true
|
||||
})
|
||||
export class FileUploadErrorPipe implements PipeTransform {
|
||||
|
||||
constructor(private translation: TranslationService) {
|
||||
}
|
||||
constructor(private translation: TranslationService) {}
|
||||
|
||||
transform(errorCode: number): string {
|
||||
return this.translation.instant(`FILE_UPLOAD.ERRORS.${errorCode || 'GENERIC'}`);
|
||||
|
Reference in New Issue
Block a user