Skip to content

Commit 964855b

Browse files
Fix: Rescale pool issue with toggling between autoscale and fixed size (#1755)
1 parent 137e504 commit 964855b

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Task exit code filter switch between include and exclude error [\#1687](https://github.com/Azure/BatchExplorer/issues/1687)
55
* Error in pool container picker with null registries [\#1690](https://github.com/Azure/BatchExplorer/issues/1690)
66
* Can't view content of prep/release task files [\#1692](https://github.com/Azure/BatchExplorer/issues/1692)
7+
* Issue when rescaling a pool and toggling autoscale [\#1751](https://github.com/Azure/BatchExplorer/issues/1751)
78

89
# 0.18.3
910

app/components/pool/action/scale/pool-scale-picker.component.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ export class PoolScalePickerComponent implements OnDestroy, ControlValueAccessor
8888
};
8989
}
9090

91-
public changeScaleModeTab(event) {
92-
this.selectedModeTab = event.index;
91+
public changeScaleModeTab(index: number) {
92+
this.selectedModeTab = index;
9393

94-
if (event.index === 0) {
94+
if (index === 0) {
9595
this.form.patchValue({ enableAutoScale: false });
96-
} else if (event.index === 1) {
96+
} else if (index === 1) {
9797
this.form.patchValue({ enableAutoScale: true });
9898
}
9999
this.form.controls.autoScaleFormula.updateValueAndValidity();

app/components/pool/action/scale/pool-scale-picker.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div [formGroup]="form">
2-
<mat-tab-group class="form-tabs" [selectedIndex]="selectedModeTab" (selectChange)="changeScaleModeTab($event)" [@.disabled]="true">
2+
<mat-tab-group class="form-tabs" [selectedIndex]="selectedModeTab" (selectedIndexChange)="changeScaleModeTab($event)" [@.disabled]="true">
33
<mat-tab label="Fixed">
44
<div class="grow">
55
<div class="gcol">

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)