read ccli license from global config

This commit is contained in:
2020-04-25 22:49:44 +02:00
committed by smuddy
parent 4c5a8c972c
commit b773df88a1
14 changed files with 79 additions and 14 deletions

View File

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

View File

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