Fixes https://tracker.ceph.com/issues/66608
- for services which do not have a count set default count to be null, otherwise the previous selected service's count is used which is wrong
- make count null when label is selected for placement
Signed-off-by: Afreen Misbah <afreen23.git@gmail.com>
<select id="placement"
class="form-select"
formControlName="placement"
- (change)="onServiceTypeChange($event.target.value)">
+ (change)="onPlacementChange($event.target.value)">
<option i18n
value="hosts">Hosts</option>
<option i18n
}
}
+ onPlacementChange(selected: string) {
+ if (selected === 'label') {
+ this.serviceForm.get('count').setValue(null);
+ }
+ }
+
onBlockPoolChange() {
const selectedBlockPool = this.serviceForm.get('pool').value;
if (selectedBlockPool) {
</div>
</ng-container>
</ng-template>
-<<<<<<< HEAD
</div>
-=======
- </div>
->>>>>>> 851da7eae8e (mgr/dashboard: Introduce NVMe/TCP navigation)