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