]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: added ports in administration table 60941/head
authorAchintk1491 <achintk1491@gmail.com>
Tue, 3 Dec 2024 14:21:07 +0000 (19:51 +0530)
committerAchintk1491 <achintk1491@gmail.com>
Thu, 12 Dec 2024 06:38:10 +0000 (12:08 +0530)
Fixes: https://tracker.ceph.com/issues/69111
Signed-off-by: Achint Kaur <ackaur@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.ts

index 40c2e95d1e013936ec169c33f558a98140dc1f4e..a07dcfcdd35345285d6b802e514f1b8a10d46fec 100644 (file)
@@ -29,6 +29,7 @@ import { PlacementPipe } from './placement.pipe';
 import { ServiceFormComponent } from './service-form/service-form.component';
 import { SettingsService } from '~/app/shared/api/settings.service';
 import { ModalCdsService } from '~/app/shared/services/modal-cds.service';
+import { CellTemplate } from '~/app/shared/enum/cell-template.enum';
 
 const BASE_URL = 'services';
 
@@ -176,6 +177,16 @@ export class ServicesComponent extends ListWithDetails implements OnChanges, OnI
         prop: 'status.last_refresh',
         pipe: this.relativeDatePipe,
         flexGrow: 1
+      },
+      {
+        name: $localize`Ports`,
+        prop: 'status.ports',
+        flexGrow: 1,
+        cellTransformation: CellTemplate.map,
+        customTemplateConfig: {
+          undefined: '-',
+          '': '-'
+        }
       }
     ];