]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | import { Pipe, PipeTransform } from '@angular/core'; |
2 | ||
11fdf7f2 TL |
3 | @Pipe({ |
4 | name: 'monSummary' | |
5 | }) | |
6 | export class MonSummaryPipe implements PipeTransform { | |
11fdf7f2 TL |
7 | transform(value: any): any { |
8 | if (!value) { | |
9 | return ''; | |
10 | } | |
11 | ||
f67539c2 TL |
12 | const result = $localize`${value.monmap.mons.length.toString()} (quorum \ |
13 | ${value.quorum.join(', ')})`; | |
11fdf7f2 TL |
14 | |
15 | return result; | |
16 | } | |
17 | } |