]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/mon-summary.pipe.ts
bump version to 18.2.2-pve1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / dashboard / mon-summary.pipe.ts
CommitLineData
11fdf7f2
TL
1import { Pipe, PipeTransform } from '@angular/core';
2
11fdf7f2
TL
3@Pipe({
4 name: 'monSummary'
5})
6export 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}