'use strict' ; import { BlockchainTreeItem } from './BlockchainTreeItem' ; import * as vscode from 'vscode' ; import * as path from 'path' ; import { BlockchainExplorerProvider } from '../BlockchainExplorerProvider' ; import { FabricWalletRegistryEntry } from 'ibm-blockchain-platform-common' ; export class IdentityTreeItem extends BlockchainTreeItem { contextValue : string = 'blockchain-identity-item' ; iconPath : { light : string ; dark : string ; } = { light : path . join ( __filename , '..' , '..' , '..' , '..' , '..' , 'resources' , 'light' , 'identification.svg' ) , dark : path . join ( __filename , '..' , '..' , '..' , '..' , '..' , 'resources' , 'dark' , 'identification.svg' ) } ; constructor ( provider , public readonly label , public readonly walletName , public readonly attributes = { } , public readonly registryEntry ) { super ( provider , label , vscode . TreeItemCollapsibleState . None ) ; this . tooltip = `Attributes:\n` ; if ( Object . keys ( attributes ) . length > 0 ) { for ( const attr of Object . keys ( attributes ) ) { this . tooltip += `\n${ attr }:${ attributes [ attr ] }` ; } } else { this . tooltip += `\nNone` ; } } }