[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:
Denys Vuika
2024-04-17 07:15:31 -04:00
committed by GitHub
parent 74ef7eed1a
commit 5d474d8866
17 changed files with 55 additions and 169 deletions

View File

@@ -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'}`);