]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix mirroring e2e and lint errors 46433/head
authorAvan Thakkar <athakkar@redhat.com>
Wed, 8 Jun 2022 11:03:18 +0000 (16:33 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Wed, 8 Jun 2022 11:51:57 +0000 (17:21 +0530)
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
src/pybind/mgr/dashboard/frontend/cypress/integration/block/mirroring.e2e-spec.ts
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 120956579d8d188feccf9f8f0a10eb49acf725e2..dfba73b27409d98f34065c1c1212eb0621a6c894 100644 (file)
@@ -20,9 +20,9 @@ describe('Mirroring page', () => {
   });
 
   it('should show text for all tabs', () => {
-    mirroring.getTabText(0).should('eq', 'Issues');
-    mirroring.getTabText(1).should('eq', 'Syncing');
-    mirroring.getTabText(2).should('eq', 'Ready');
+    mirroring.getTabText(0).should('eq', 'Issues (0)');
+    mirroring.getTabText(1).should('eq', 'Syncing (0)');
+    mirroring.getTabText(2).should('eq', 'Ready (0)');
   });
 
   describe('checks that edit mode functionality shows in the pools table', () => {
index a9547a10bc4af82348d971b74bde9b1d46d6ca5a..d4972a41c13536042a88896c59c20d2179e9c235 100644 (file)
@@ -57,7 +57,7 @@
   <div *ngIf="row.state === 'Replaying'">
   </div>
   <ngb-progressbar *ngIf="row.state === 'Syncing'"
-                    type="info"
+                   type="info"
                    [value]="value"
                    [showValue]="true"></ngb-progressbar>
 </ng-template>
index 00fe91338fa243ef5d35ab588706a4ac274a897b..4966cc0af5dcc040068fc6c89557dcba54efd96c 100644 (file)
@@ -47,13 +47,13 @@ export class ImageListComponent implements OnInit, OnDestroy {
         cellTemplate: this.stateTmpl,
         flexGrow: 1
       },
-      { prop: 'description', name: $localize`Issue`, flexGrow: 4 },
+      { prop: 'description', name: $localize`Issue`, flexGrow: 4 }
     ];
 
     this.image_syncing.columns = [
       { prop: 'pool_name', name: $localize`Pool`, flexGrow: 2 },
       { prop: 'name', name: $localize`Image`, flexGrow: 2 },
-                       {
+      {
         prop: 'state',
         name: $localize`State`,
         cellTemplate: this.stateTmpl,
@@ -66,7 +66,7 @@ export class ImageListComponent implements OnInit, OnDestroy {
         flexGrow: 2
       },
       { prop: 'bytes_per_second', name: $localize`Bytes per second`, flexGrow: 2 },
-                       { prop: 'entries_behind_primary', name: $localize`Entries behind primary`, flexGrow: 2 },
+      { prop: 'entries_behind_primary', name: $localize`Entries behind primary`, flexGrow: 2 }
     ];
 
     this.image_ready.columns = [
@@ -78,7 +78,7 @@ export class ImageListComponent implements OnInit, OnDestroy {
         cellTemplate: this.stateTmpl,
         flexGrow: 1
       },
-      { prop: 'description', name: $localize`Description`, flexGrow: 4 },
+      { prop: 'description', name: $localize`Description`, flexGrow: 4 }
     ];
 
     this.subs = this.rbdMirroringService.subscribeSummary((data) => {