Skip to content

Commit

Permalink
Rename draft prop
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 committed Dec 24, 2024
1 parent eff6574 commit d4e2b15
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/commands/editContainer/editContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function editContainer(context: IActionContext, node?: ContainersIt
managedEnvironment: await getManagedEnvironmentFromContainerApp({ ...context, ...subscriptionContext }, containerApp),
containerApp,
containersIdx,
isDraftCommand: true,
isDrafting: true,
};
wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function editContainerImage(context: IActionContext, node?: ImageIt
managedEnvironment: await getManagedEnvironmentFromContainerApp({ ...context, ...subscriptionContext }, containerApp),
containerApp,
containersIdx: item.containersIdx,
isDraftCommand: true,
isDrafting: true,
};
wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function addEnvironmentVariable(context: IActionContext, node?: Env
managedEnvironment: await getManagedEnvironmentFromContainerApp({ ...context, ...subscriptionContext }, containerApp),
containerApp,
containersIdx: item.containersIdx,
isDraftCommand: true,
isDrafting: true,
};
wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function deleteEnvironmentVariable(context: IActionContext, node?:
containerApp,
containersIdx: item.containersIdx,
environmentVariable: item.envVariable,
isDraftCommand: true,
isDrafting: true,
};
wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function editEnvironmentVariableName(context: IActionContext, node?
containerApp,
containersIdx: item.containersIdx,
environmentVariable: item.envVariable,
isDraftCommand: true,
isDrafting: true,
};
wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function editEnvironmentVariables(context: IActionContext, node?: E
managedEnvironment: await getManagedEnvironmentFromContainerApp({ ...context, ...subscriptionContext }, containerApp),
containerApp,
containersIdx: item.containersIdx,
isDraftCommand: true,
isDrafting: true,
};
wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class ContainerRegistryImageConfigureStep<T extends ContainerRegistryImag
}

public async getSubWizard(context: T & Partial<RevisionDraftContext>): Promise<IWizardOptions<T> | undefined> {
if (context.isDraftCommand) {
if (context.isDrafting) {
// Skip any steps that would attempt to update the container app directly while we're in a drafting mode
return undefined;
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/revisionDraft/RevisionDraftContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
import { type IContainerAppContext } from "../IContainerAppContext";

export interface RevisionDraftContext extends IContainerAppContext {
isDraftCommand?: boolean;
isDrafting?: boolean;
shouldDeployRevisionDraft?: boolean;
}
2 changes: 1 addition & 1 deletion src/commands/scaling/scaleRange/editScaleRange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function editScaleRange(context: IActionContext, node?: ScaleItem):
subscription,
scaleMinRange: scale.minReplicas ?? 0,
scaleMaxRange: scale.maxReplicas ?? 0,
isDraftCommand: true,
isDrafting: true,
};

const wizard: AzureWizard<ScaleRangeContext> = new AzureWizard(wizardContext, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function addScaleRule(context: IActionContext, node?: ScaleRuleGrou
containerApp,
subscription,
parentResourceName: nonNullProp(parentResource, 'name'),
isDraftCommand: true,
isDrafting: true,
};

const wizard: AzureWizard<IAddScaleRuleContext> = new AzureWizard(wizardContext, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function deleteScaleRule(context: IActionContext, node?: ScaleRuleI
containerApp,
subscription,
scaleRule: item.scaleRule,
isDraftCommand: true,
isDrafting: true,
}

const confirmMessage = localize('confirmMessage', 'Are you sure you want to delete this scale rule?');
Expand Down

0 comments on commit d4e2b15

Please sign in to comment.