]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Cluster expansion review page minor bug fixes 43661/head
authorNizamudeen A <nia@redhat.com>
Tue, 26 Oct 2021 07:46:51 +0000 (13:16 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 26 Oct 2021 09:56:10 +0000 (15:26 +0530)
Fix the Total Memory coming up as NaN Undefined
Remove `Add` Button in the Cluster Details table

Fixes: https://tracker.ceph.com/issues/53038
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster-review.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster-review.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts

index f59cf6baceb515b9b49331046a19eeb94050e6f1..812598f6ccab066452b6d7d4d98521138b19f4d6 100644 (file)
@@ -42,6 +42,7 @@
 <legend i18n
         class="cd-header">Host Details</legend>
 <cd-hosts [hiddenColumns]="['services', 'status']"
+          [hideToolHeader]="true"
           [hideTitle]="true"
           [hideSubmitBtn]="true"
           [hasTableDetails]="false"
index 3e0f44f958a83ccac4140f2f1235c8e71f5c080b..8960f399a77eba445133d32ec5fcd4c6318778c5 100644 (file)
@@ -73,7 +73,6 @@ export class CreateClusterReviewComponent implements OnInit {
           (this.serviceOccurrences[serviceKey['service_type']] || 0) + 1;
         this.uniqueServices.add(serviceKey['service_type']);
       });
-      this.totalMemory = this.dimlessBinary.transform(this.totalMemory);
 
       this.uniqueServices.forEach((serviceType) => {
         this.hostsCountPerService.push({
index a4d30918cc562332abbbf4bb6fe0d59b721e35cb..3b310d45650278151fd344a8f8f9ab0921578a7c 100644 (file)
@@ -13,7 +13,8 @@
                 selectionType="single"
                 [hasDetails]="hasTableDetails"
                 (setExpandedRow)="setExpandedRow($event)"
-                (updateSelection)="updateSelection($event)">
+                (updateSelection)="updateSelection($event)"
+                [toolHeader]="!hideToolHeader">
         <div class="table-actions btn-toolbar">
           <cd-table-actions [permission]="permissions.hosts"
                             [selection]="selection"
index fe0b797bd1d7cbd9b91f674f2172897bc51ad778..6026c180242bcb0e6398070c4c4f4ea48544b7c2 100644 (file)
@@ -68,6 +68,9 @@ export class HostsComponent extends ListWithDetails implements OnDestroy, OnInit
   @Input()
   hasTableDetails = true;
 
+  @Input()
+  hideToolHeader = false;
+
   @Input()
   showGeneralActionsOnly = false;