]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix osd modal spacings and footer 68521/head
authorAfreen Misbah <afreen@ibm.com>
Tue, 21 Apr 2026 18:17:35 +0000 (23:47 +0530)
committerAfreen Misbah <afreen@ibm.com>
Tue, 21 Apr 2026 18:19:13 +0000 (23:49 +0530)
Fixes https://tracker.ceph.com/issues/76188

- aligned as per https://carbondesignsystem.com/components/modal/usage/#transactional-modal

Signed-off-by: Afreen Misbah <afreen@ibm.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-indiv-modal/osd-flags-indiv-modal.component.html

index d9fb2321f28473dceb9d44af36f30bf2efe22cfe..69762c681978c5420ee0ca253fe2846bab628f2e 100644 (file)
@@ -35,7 +35,7 @@
             </div>
           </cds-checkbox>
           @if (!last) {
-          <hr class="cds-m-1" />
+          <hr class="cds-m-2" />
           }
         </div>
         }
     </form>
   </div>
 
-  <cds-modal-footer>
-    <button [cdsButton]="'ghost'"
-            (click)="closeModal()"
-            type="button"
-            i18n>
-      Cancel
-    </button>
-    <button [cdsButton]="'secondary'"
-            (click)="resetSelection()"
-            type="button"
-            i18n>
-      Restore previous selection
-    </button>
-    @if (permissions.osd.update) {
-    <cd-submit-button
-      (submitAction)="submitAction()"
-      [form]="osdFlagsForm"
-      [submitText]="actionLabels.UPDATE"
-    >{{ actionLabels.UPDATE }}</cd-submit-button>
-    }
+  <cds-modal-footer class="osd-footer">
+    <cds-button-set>
+      <button cdsButton="secondary"
+              (click)="closeModal()"
+              i18n>
+        Cancel
+      </button>
+      <button cdsButton="secondary"
+              (click)="resetSelection()"
+              i18n>
+        Reset
+      </button>
+      @if (permissions.osd.update) {
+      <cd-submit-button
+        (submitAction)="submitAction()"
+        [form]="osdFlagsForm"
+        [submitText]="actionLabels.UPDATE">
+        {{ actionLabels.UPDATE }}</cd-submit-button>
+      }
+    </cds-button-set>
   </cds-modal-footer>
 </cds-modal>