]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Save button doesn't prevent saving an invalid form 24577/head
authorPatrick Nawracay <pnawracay@suse.com>
Sat, 13 Oct 2018 20:58:36 +0000 (22:58 +0200)
committerPatrick Nawracay <pnawracay@suse.com>
Mon, 15 Oct 2018 06:40:51 +0000 (08:40 +0200)
Fixes: http://tracker.ceph.com/issues/36426
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.ts

index ea467161a3089b319ccd42357a64868132aa455f..e2025fc33c17ec4cead261880fb82d70f9fd260a 100644 (file)
         </div>
 
         <!-- Values -->
-        <div class="col-sm-12">
+        <div class="col-sm-12" formGroupName="values">
           <h2 i18n
               class="page-header">Values</h2>
           <div class="row" *ngFor="let section of availSections">
index 53e059ffbe0c4a5a528202afbfa912b65c51bab3..b383eaa00270ae9fa8f3739fc9956db00776a022 100644 (file)
@@ -49,7 +49,7 @@ export class ConfigurationFormComponent implements OnInit {
     };
 
     this.availSections.forEach((section) => {
-      formControls.values.controls[section] = new FormControl(null);
+      formControls.values.addControl(section, new FormControl(null));
     });
 
     this.configForm = new CdFormGroup(formControls);