]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
03b49a8030d658f578ffa2a1099af886e2450cda
[ceph.git] /
1 <cd-modal [modalRef]="activeModal">
2   <ng-container i18n
3                 class="modal-title">Edit pool mirror mode</ng-container>
4
5   <ng-container class="modal-content">
6     <form name="editModeForm"
7           class="form"
8           #formDir="ngForm"
9           [formGroup]="editModeForm"
10           novalidate>
11       <div class="modal-body">
12         <p>
13           <ng-container i18n>To edit the mirror mode for pool&nbsp;
14           <kbd>{{ poolName }}</kbd>, select a new mode from the list and click&nbsp;
15           <kbd>Update</kbd>.</ng-container>
16         </p>
17
18         <div class="form-group">
19           <label class="col-form-label"
20                  for="mirrorMode">
21             <span i18n>Mode</span>
22           </label>
23           <select id="mirrorMode"
24                   name="mirrorMode"
25                   class="form-control"
26                   formControlName="mirrorMode">
27             <option *ngFor="let mirrorMode of mirrorModes"
28                     [value]="mirrorMode.id">{{ mirrorMode.name }}</option>
29           </select>
30           <span class="invalid-feedback"
31                 *ngIf="editModeForm.showError('mirrorMode', formDir, 'cannotDisable')"
32                 i18n>Peer clusters must be removed prior to disabling mirror.</span>
33         </div>
34       </div>
35
36       <div class="modal-footer">
37         <cd-form-button-panel (submitActionEvent)="update()"
38                               [form]="editModeForm"
39                               [submitText]="actionLabels.UPDATE"></cd-form-button-panel>
40       </div>
41     </form>
42   </ng-container>
43 </cd-modal>