read ccli license from global config
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import {StatusPipe} from './status.pipe';
|
||||
|
||||
describe('StatusPipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new StatusPipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,21 @@
|
||||
import {Pipe, PipeTransform} from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'status'
|
||||
})
|
||||
export class StatusPipe implements PipeTransform {
|
||||
|
||||
transform(songTypeKey: string): string {
|
||||
switch (songTypeKey) {
|
||||
case 'draft':
|
||||
return 'Entwurf';
|
||||
case 'set':
|
||||
return 'offen';
|
||||
case 'final':
|
||||
return 'final';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user