3 (overlaySelected)="closeModal()">
4 <cds-modal-header (closeSelect)="closeModal()">
5 <h3 cdsModalHeaderHeading
6 i18n>Edit pool mirror mode</h3>
9 <section cdsModalContent>
10 <form name="editModeForm"
13 [formGroup]="editModeForm"
16 <ng-container i18n>To edit the mirror mode for pool
17 <kbd>{{ poolName }}</kbd>, select a new mode from the list and click
18 <kbd>Update</kbd>.</ng-container>
21 <div class="form-item">
22 <cds-select label="Mode"
24 formControlName="mirrorMode"
27 [invalid]="editModeForm.controls['mirrorMode'].invalid && (editModeForm.controls['mirrorMode'].dirty || editModeForm.controls['mirrorMode'].touched)"
28 [invalidText]="mirrorModeError"
29 cdRequiredField="Mode"
31 <option *ngFor="let mirrorMode of mirrorModes"
32 [value]="mirrorMode.id">{{ mirrorMode.name }}</option>
34 <ng-template #mirrorModeError>
35 <span class="invalid-feedback"
36 *ngIf="editModeForm.showError('mirrorMode', formDir, 'cannotDisable')"
37 i18n>Peer clusters must be removed prior to disabling mirror.</span>
43 <cd-form-button-panel (submitActionEvent)="update()"
45 [submitText]="actionLabels.UPDATE"
46 [modalForm]="true"></cd-form-button-panel>