]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix modals for Identifying Device and Editing OSD 32589/head
authorVolker Theile <vtheile@suse.com>
Mon, 13 Jan 2020 09:21:47 +0000 (10:21 +0100)
committerVolker Theile <vtheile@suse.com>
Mon, 13 Jan 2020 09:21:51 +0000 (10:21 +0100)
Fixes: https://tracker.ceph.com/issues/43544
Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/form-modal/form-modal.component.html

index 89842cbf0fe3024e6ac57ad16203b5535f65da31..025615e496edbdcc278e53956f4f268e5dfe31c0 100644 (file)
@@ -344,7 +344,7 @@ export class OsdListComponent implements OnInit {
         }),
         fields: [
           {
-            type: 'inputText',
+            type: 'text',
             name: 'deviceClass',
             value: selectedOsd.tree.device_class,
             label: this.i18n('Device class'),
index a7c76941afd30bb6e9e5a1f22884148a838cad31..ced902d67cf5b898347793dfab07b1451ddc7580 100755 (executable)
@@ -30,7 +30,7 @@
                      [name]="field.name"
                      [formControlName]="field.name"
                      cdDimlessBinary>
-              <select *ngIf="field.name === 'select'"
+              <select *ngIf="field.type === 'select'"
                       class="form-control custom-select"
                       [id]="field.name"
                       [formControlName]="field.name">
@@ -43,7 +43,7 @@
                   {{ option.text }}
                 </option>
               </select>
-              <span *ngIf="formGroup.showError(field.name,formDir)"
+              <span *ngIf="formGroup.showError(field.name, formDir)"
                     class="invalid-feedback">
                 {{ getError(field) }}
               </span>