Skip to content

Commit 43fd26e

Browse files
committed
Update
1 parent 0cbd3de commit 43fd26e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/commands/scaling/scaleRange/ScaleRangeUpdateStep.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6+
import { nonNullProp } from "@microsoft/vscode-azext-utils";
67
import { ext } from "../../../extensionVariables";
78
import type { RevisionsItemModel } from "../../../tree/revisionManagement/RevisionItem";
89
import { localize } from "../../../utils/localize";
@@ -24,6 +25,9 @@ export class ScaleRangeUpdateStep<T extends ScaleRangeContext> extends RevisionD
2425

2526
this.updateRevisionDraftWithTemplate();
2627

28+
context.scaleMinRange = nonNullProp(context, 'newMinRange');
29+
context.scaleMaxRange = nonNullProp(context, 'newMaxRange');
30+
2731
const parentResourceName = getParentResourceFromItem(this.baseItem).name;
2832
ext.outputChannel.appendLog(localize('updatedScaleRange', 'Updated replica scaling range to {0}-{1} for "{2}".', context.newMinRange, context.newMaxRange, parentResourceName));
2933
}

src/commands/scaling/scaleRange/editScaleRange.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function editScaleRange(context: IActionContext, node?: ScaleItem):
3333
};
3434

3535
const wizard: AzureWizard<ScaleRangeContext> = new AzureWizard(wizardContext, {
36-
title: localize('editScaleRangePre', 'Update replica scaling range for container app "{0}" (draft)', containerApp.name),
36+
title: localize('editScaleRangePre', 'Update replica scaling range for "{0}" (draft)', parentResource.name),
3737
promptSteps: [new ScaleRangePromptStep()],
3838
executeSteps: [new ScaleRangeUpdateStep(item)],
3939
showLoadingPrompt: true

0 commit comments

Comments
 (0)