Skip to content

Commit 9c0f1c7

Browse files
committed
Feedback
1 parent 9880f58 commit 9c0f1c7

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

src/commands/identity/EnableSystemIdentityStep.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class EnableSystemIdentityAssignStep extends AzureWizardExecuteStep<Manag
2424
site.rawSite.identity = identity;
2525

2626
const enabling: string = localize('enabling', 'Enabling system assigned identity for "{0}"...', site.fullName);
27-
const enabled: string = localize('enabled', 'Enabled system assigned identity for "{0}".', site.fullName);
27+
const enabled: string = localize('enabled', 'Enabled system assigned identity for "{0}"', site.fullName);
2828
ext.outputChannel.appendLog(enabling);
2929

3030
await client.webApps.update(site.resourceGroup, site.siteName, site.rawSite);

src/commands/identity/assignManagedIdentity.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function assignManagedIdentity(context: IActionContext, node?: User
3535
const executeSteps: AzureWizardExecuteStep<ManagedIdentityAssignContext>[] = [
3636
new ManagedIdentityAssignStep()
3737
];
38-
const title: string = localize('assignManagedIdentity', 'Assign Managed Identity to Function App');
38+
const title: string = localize('assignManagedIdentity', 'Assign User Assigned Identity to Function App');
3939
const wizard: AzureWizard<ManagedIdentityAssignContext> = new AzureWizard(wizardContext, {
4040
title,
4141
promptSteps,
@@ -45,7 +45,7 @@ export async function assignManagedIdentity(context: IActionContext, node?: User
4545

4646

4747
await wizard.prompt();
48-
wizardContext.activityTitle = localize('assigning', 'Assigning user assigned identity "{1}" for "{0}"...', wizardContext.site?.fullName, wizardContext.managedIdentity?.name);
48+
wizardContext.activityTitle = localize('assigning', 'Assigned user assigned identity "{1}" for "{0}"', wizardContext.site?.fullName, wizardContext.managedIdentity?.name);
4949
await node.runWithTemporaryDescription(context, localize('enabling', 'Assigning identity...'), async () => {
5050
await wizard.execute();
5151
});

src/commands/identity/enableSystemIdentity.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
import { AzureWizard, type ExecuteActivityContext, type IActionContext } from "@microsoft/vscode-azext-utils";
77
import { localize } from "../../localize";
88
import { type SystemIdentityTreeItemBase } from "../../tree/remoteProject/SystemIdentityTreeItemBase";
9-
import { type SlotTreeItem } from "../../tree/SlotTreeItem";
109
import { createActivityContext } from "../../utils/activityUtils";
1110
import { EnableSystemIdentityAssignStep } from "./EnableSystemIdentityStep";
1211
import { type ManagedIdentityAssignContext } from "./ManagedIdentityAssignContext";
1312

1413
export async function enableSystemIdentity(context: IActionContext, node: SystemIdentityTreeItemBase): Promise<undefined> {
15-
const grandparentNode = node.parent.parent as SlotTreeItem;
16-
const title: string = localize('enabling', 'Enabling system assigned identity for "{0}"...', grandparentNode.site.fullName);
14+
const grandparentNode = node.parent.parent;
15+
const title: string = localize('enabling', 'Enabled system assigned identity for "{0}".', grandparentNode.site.fullName);
1716

1817
const wizardContext: ManagedIdentityAssignContext & ExecuteActivityContext = Object.assign(context, {
1918
site: grandparentNode.site,
@@ -22,8 +21,7 @@ export async function enableSystemIdentity(context: IActionContext, node: System
2221
activityTitle: title
2322
});
2423
const wizard = new AzureWizard(wizardContext, {
25-
executeSteps: [new EnableSystemIdentityAssignStep()],
26-
title
24+
executeSteps: [new EnableSystemIdentityAssignStep()]
2725
});
2826

2927
await node.runWithTemporaryDescription(context, localize('enabling', 'Enabling system assigned identity...'), async () => {

src/tree/remoteProject/ManagedIdentityTreeItem.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ import { type ParsedSite } from '@microsoft/vscode-azext-azureappservice';
77
import { AzExtParentTreeItem, createContextValue, type AzExtTreeItem, type IActionContext, type TreeItemIconPath } from '@microsoft/vscode-azext-utils';
88
import { ThemeIcon } from 'vscode';
99
import { localize } from '../../localize';
10-
import { type IProjectTreeItem } from '../IProjectTreeItem';
1110
import { type SlotTreeItem } from '../SlotTreeItem';
1211
import { SystemIdentityTreeItemBase } from './SystemIdentityTreeItemBase';
1312
import { UserAssignedIdentitiesTreeItem } from './UserAssignedIdentitiesTreeItem';
1413

1514
export class ManagedIdentityTreeItem extends AzExtParentTreeItem {
1615
public readonly label: string = localize('Identity', 'Identity');
1716
public static contextValue: string = 'azFuncManagedIdentity';
18-
public readonly parent: AzExtParentTreeItem & IProjectTreeItem & SlotTreeItem;
17+
public readonly parent: SlotTreeItem;
1918
public readonly site: ParsedSite;
2019
public suppressMaskLabel: boolean = true;
2120

0 commit comments

Comments
 (0)