Skip to content

Commit

Permalink
Add viewProperties model to get full data of storage account (#1359)
Browse files Browse the repository at this point in the history
  • Loading branch information
nturinski authored Dec 10, 2024
1 parent 2b42f18 commit 4f716aa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/tree/StorageAccountTreeItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { QueueServiceClient, StorageSharedKeyCredential as StorageSharedKeyCrede
import { StorageAccountKey, StorageManagementClient } from '@azure/arm-storage';
import { AzExtParentTreeItem, AzExtTreeItem, AzureWizard, DeleteConfirmationStep, DialogResponses, IActionContext, ISubscriptionContext, UserCancelledError } from '@microsoft/vscode-azext-utils';
import { ResolvedAppResourceTreeItem } from '@microsoft/vscode-azext-utils/hostapi';
import { ViewPropertiesModel } from '@microsoft/vscode-azureresources-api';
import { MessageItem, commands, window } from 'vscode';
import { ResolvedStorageAccount } from '../StorageAccountResolver';
import { DeleteStorageAccountStep } from '../commands/deleteStorageAccount/DeleteStorageAccountStep';
Expand Down Expand Up @@ -87,7 +88,12 @@ export class StorageAccountTreeItem implements ResolvedStorageAccount, IStorageT
public label: string = this.storageAccount.name;
public static contextValue: string = 'azureStorageAccount';
public contextValuesToAdd: string[] = [StorageAccountTreeItem.contextValue];

viewProperties: ViewPropertiesModel = {
getData: async () => {
return this.storageAccount
},
label: this.label
}
// eslint-disable-next-line @typescript-eslint/require-await
async loadMoreChildrenImpl(_clearCache: boolean): Promise<AzExtTreeItem[]> {
this._blobContainerGroupTreeItem = new BlobContainerGroupTreeItem(this as unknown as (AzExtParentTreeItem & ResolvedAppResourceTreeItem<ResolvedStorageAccount>));
Expand Down

0 comments on commit 4f716aa

Please sign in to comment.