Zusätzliche Felder

This commit is contained in:
2020-03-02 16:27:31 +01:00
committed by smuddy
parent 53a234458f
commit f5d9350e53
36 changed files with 357 additions and 74 deletions

View File

@@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LegalTypePipe } from './legal-type.pipe';
@NgModule({
declarations: [LegalTypePipe],
exports: [
LegalTypePipe
],
imports: [
CommonModule
]
})
export class LegalTypeTranslatorModule { }

View File

@@ -0,0 +1,8 @@
import { LegalTypePipe } from './legal-type.pipe';
describe('LegalTypePipe', () => {
it('create an instance', () => {
const pipe = new LegalTypePipe();
expect(pipe).toBeTruthy();
});
});

View File

@@ -0,0 +1,19 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'legalType'
})
export class LegalTypePipe implements PipeTransform {
transform(legalTypeKey: string): string {
switch (legalTypeKey) {
case 'open':
return 'Klärung erforderlich ';
case 'allowed':
return 'OK';
default:
return '';
}
}
}