]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix displaying mirror image progress 50843/head
authorPere Diaz Bou <pere-altea@hotmail.com>
Mon, 3 Apr 2023 15:22:35 +0000 (17:22 +0200)
committerPere Diaz Bou <pere-altea@hotmail.com>
Mon, 3 Apr 2023 15:22:35 +0000 (17:22 +0200)
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/image-list/image-list.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/image-list/image-list.component.ts

index ef72663cde90da9b0be5eb0374caa62eb4ec84d5..1a92315101170ff1648fd690738a3611c6671fcb 100644 (file)
              let-value="value">
   <div *ngIf="row.state === 'Replaying'">
   </div>
-  <ngb-progressbar *ngIf="row.state === 'Syncing'"
-                   type="info"
-                   [value]="value"
-                   [showValue]="true"></ngb-progressbar>
+  <div class="w-100 h-100 d-flex justify-content-center align-items-center">
+    <ngb-progressbar *ngIf="row.state === 'Replaying'"
+                     type="info"
+                     class="w-100"
+                     [value]="value"
+                     [showValue]="true"></ngb-progressbar>
+  </div>
 </ng-template>
index 4966cc0af5dcc040068fc6c89557dcba54efd96c..babd46542e533c2f24169724e73d767b4321df70 100644 (file)
@@ -60,7 +60,7 @@ export class ImageListComponent implements OnInit, OnDestroy {
         flexGrow: 1
       },
       {
-        prop: 'progress',
+        prop: 'syncing_percent',
         name: $localize`Progress`,
         cellTemplate: this.progressTmpl,
         flexGrow: 2