]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-mode-modal/pool-edit-mode-modal.component.html
import ceph quincy 17.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / block / mirroring / pool-edit-mode-modal / pool-edit-mode-modal.component.html
index 78fd2dfb1f5a4e3d1ceaf39bb690921d6475e664..00fe92b32b734ecf507ab2c0080f0b2e169ba577 100644 (file)
@@ -1,4 +1,5 @@
-<cd-modal [modalRef]="modalRef">
+<cd-modal [modalRef]="activeModal"
+          pageURL="mirroring">
   <ng-container i18n
                 class="modal-title">Edit pool mirror mode</ng-container>
 
@@ -15,9 +16,8 @@
           <kbd>Update</kbd>.</ng-container>
         </p>
 
-        <div class="form-group"
-             [ngClass]="{'has-error': editModeForm.showError('mirrorMode', formDir)}">
-          <label class="control-label"
+        <div class="form-group">
+          <label class="col-form-label"
                  for="mirrorMode">
             <span i18n>Mode</span>
           </label>
             <option *ngFor="let mirrorMode of mirrorModes"
                     [value]="mirrorMode.id">{{ mirrorMode.name }}</option>
           </select>
-          <span class="help-block"
+          <span class="invalid-feedback"
                 *ngIf="editModeForm.showError('mirrorMode', formDir, 'cannotDisable')"
                 i18n>Peer clusters must be removed prior to disabling mirror.</span>
         </div>
       </div>
 
       <div class="modal-footer">
-        <div class="button-group text-right">
-          <cd-submit-button i18n
-                            [form]="editModeForm"
-                            (submitAction)="update()">Update</cd-submit-button>
-          <cd-back-button [back]="modalRef.hide"
-                          name="Cancel"
-                          i18n-name>
-          </cd-back-button>
-        </div>
+        <cd-form-button-panel (submitActionEvent)="update()"
+                              [form]="editModeForm"
+                              [submitText]="actionLabels.UPDATE"></cd-form-button-panel>
       </div>
     </form>
   </ng-container>