Zusätzliche Felder - missing files
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import {LegalOwnerPipe} from './legal-owner.pipe';
|
||||
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [LegalOwnerPipe],
|
||||
exports: [
|
||||
LegalOwnerPipe
|
||||
],
|
||||
imports: [
|
||||
CommonModule
|
||||
]
|
||||
})
|
||||
export class LegalOwnerTranslatorModule { }
|
||||
@@ -0,0 +1,8 @@
|
||||
import { LegalOwnerPipe } from './legal-owner.pipe';
|
||||
|
||||
describe('LegalOwnerPipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new LegalOwnerPipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'legalOwner'
|
||||
})
|
||||
export class LegalOwnerPipe implements PipeTransform {
|
||||
|
||||
transform(legalOwnerKey: string): string {
|
||||
switch (legalOwnerKey) {
|
||||
case 'CCLI':
|
||||
return 'CCLI';
|
||||
case 'other':
|
||||
return 'andere';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user