summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/iscsi-backstore.pipe.ts
blob: 19a0d66c196bb63ac0723a83d83d4c77d5834629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'iscsiBackstore'
})
export class IscsiBackstorePipe implements PipeTransform {
  transform(value: any): any {
    switch (value) {
      case 'user:rbd':
        return 'user:rbd (tcmu-runner)';
      default:
        return value;
    }
  }
}