]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/mon-summary.pipe.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / dashboard / mon-summary.pipe.ts
1 import { Pipe, PipeTransform } from '@angular/core';
2
3 @Pipe({
4 name: 'monSummary'
5 })
6 export class MonSummaryPipe implements PipeTransform {
7 transform(value: any): any {
8 if (!value) {
9 return '';
10 }
11
12 const result = $localize`${value.monmap.mons.length.toString()} (quorum \
13 ${value.quorum.join(', ')})`;
14
15 return result;
16 }
17 }