]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Remove form element from RgwUserDetails
authorTiago Melo <tspmelo@gmail.com>
Fri, 12 Oct 2018 17:38:50 +0000 (18:38 +0100)
committerTiago Melo <tmelo@suse.com>
Mon, 15 Oct 2018 15:39:17 +0000 (16:39 +0100)
This element is not necessary and removes the need to import FormModule in the
test file.

Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.html

index ca51f56970b2d9e3cdd76861827d94e63719d69f..4a8ae5cae9b847b3ac299fca067cda942905ab6a 100644 (file)
@@ -1,5 +1,6 @@
 <tabset *ngIf="selection.hasSingleSelection">
-  <tab i18n-heading heading="Details">
+  <tab i18n-heading
+       heading="Details">
     <div *ngIf="user">
       <table class="table table-striped table-bordered">
         <tbody>
     </div>
   </tab>
 
-  <tab i18n-heading heading="Keys">
-    <form class="form-horizontal">
-      <cd-table [data]="keys"
-                [columns]="keysColumns"
-                columnMode="flex"
-                selectionType="multi"
-                forceIdentifier="true"
-                (updateSelection)="updateKeysSelection($event)">
-        <div class="table-actions">
-          <div class="btn-group" dropdown>
-            <button type="button"
-                    class="btn btn-sm btn-primary"
-                    [disabled]="!keysSelection.hasSingleSelection"
-                    (click)="showKeyModal()">
-              <i class="fa fa-eye"></i>
-              <ng-container i18n>Show</ng-container>
-            </button>
-          </div>
+  <tab i18n-heading
+       heading="Keys">
+    <cd-table [data]="keys"
+              [columns]="keysColumns"
+              columnMode="flex"
+              selectionType="multi"
+              forceIdentifier="true"
+              (updateSelection)="updateKeysSelection($event)">
+      <div class="table-actions">
+        <div class="btn-group"
+             dropdown>
+          <button type="button"
+                  class="btn btn-sm btn-primary"
+                  [disabled]="!keysSelection.hasSingleSelection"
+                  (click)="showKeyModal()">
+            <i class="fa fa-eye"></i>
+            <ng-container i18n>Show</ng-container>
+          </button>
         </div>
-      </cd-table>
-    </form>
+      </div>
+    </cd-table>
   </tab>
 </tabset>