]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix linting issues
authorPere Diaz Bou <pdiazbou@redhat.com>
Tue, 21 Jun 2022 08:34:56 +0000 (10:34 +0200)
committerNizamudeen A <nia@redhat.com>
Tue, 16 Aug 2022 07:31:59 +0000 (13:01 +0530)
Resolves: rhbz#1891012

Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
(cherry picked from commit 536c3833d990c95cd7b8e46e84abc43d7ffe8607)

src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.html
src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.spec.ts
src/pybind/mgr/dashboard/openapi.yaml

index 259afc51398515ab8609934ee2f4b47eadbc42d1..5bda4e0476c4a8f8804b6cd77a174d65cb084ef2 100644 (file)
@@ -7,15 +7,16 @@
     <div class="blank-page">
       <div *ngIf="header && message; else elseBlock">
         <i [ngClass]="icon"
-          class="mx-auto d-block"></i>
+           class="mx-auto d-block"></i>
 
         <div class="mt-4 text-center">
           <h3><b>{{ header }}</b></h3>
           <h4 class="mt-3"
               *ngIf="header !== message">{{ message }}</h4>
-            <h4 *ngIf="section"
-                i18n>Please consult the <a href="{{ docUrl }}">documentation</a> on how to configure and enable
-                     the {{ sectionInfo }} management functionality.</h4>
+          <h4 *ngIf="section"
+              i18n>Please consult the <a href="{{ docUrl }}">documentation</a> on how to configure and enable
+                   the {{ sectionInfo }} management functionality.
+          </h4>
         </div>
       </div>
 
index 65b93330033fbdbc18736a9f0794964c0744d0a3..5763d4d975fb6dd3ea2e85c496fdf1d765c3ddc4 100644 (file)
@@ -14,12 +14,7 @@ describe('ErrorComponent', () => {
 
   configureTestBed({
     declarations: [ErrorComponent],
-    imports: [
-      HttpClientTestingModule,
-      RouterTestingModule,
-      SharedModule,
-      ToastrModule.forRoot()
-    ]
+    imports: [HttpClientTestingModule, RouterTestingModule, SharedModule, ToastrModule.forRoot()]
   });
 
   beforeEach(() => {
index 37cc0872b145e59fc1ecc37dfa7661389fb86a20..6c919598a6582943e1a5251b6f58d8557fb8abd6 100644 (file)
@@ -7228,26 +7228,9 @@ paths:
           application/json:
             schema:
               properties:
-                application_metadata:
-                  type: string
-                configuration:
-                  type: string
-                erasure_code_profile:
-                  type: string
-                flags:
-                  type: string
-                pg_num:
-                  type: integer
                 pool:
+                  default: rbd-mirror
                   type: string
-                pool_type:
-                  type: string
-                rule_name:
-                  type: string
-              required:
-              - pool
-              - pg_num
-              - pool_type
               type: object
       responses:
         '201':