Show status on dataset profile listing and filter them based on status (ref #265)
parent
b539544075
commit
50c45b7271
@ -0,0 +1,16 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'parseStatus',
|
||||
pure: true
|
||||
})
|
||||
export class ParseStatus implements PipeTransform {
|
||||
transform(value: any, ...args: any[]) {
|
||||
return this.parseStatus(value);
|
||||
}
|
||||
|
||||
|
||||
parseStatus(status: number): string {
|
||||
return status != 0 ? 'DATASET-PROFILE-STATUS.FINALIZED' : 'DATASET-PROFILE-STATUS.DRAFT';
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue