Added the new hdfs icon for the web HDFS folder. (#4317)

* Added the new hdfs icon for the web HDFS folder.

* overriding the getNodeInfo() in the ConnectionNode
This commit is contained in:
Maddy
2019-03-07 00:57:12 -08:00
committed by GitHub
parent 7de294a58e
commit e16c01623d
3 changed files with 23 additions and 0 deletions

View File

@@ -225,6 +225,23 @@ export class ConnectionNode extends FolderNode {
item.contextValue = this._nodeType;
return item;
}
getNodeInfo(): azdata.NodeInfo {
// TODO handle error message case by returning it in the OE API
// TODO support better mapping of node type
let nodeInfo: azdata.NodeInfo = {
label: this.getDisplayName(),
isLeaf: false,
errorMessage: undefined,
metadata: undefined,
nodePath: this.generateNodePath(),
nodeStatus: undefined,
nodeType: this._nodeType,
nodeSubType: undefined,
iconType: 'HDFSFolder'
};
return nodeInfo;
}
}
export class FileNode extends HdfsFileSourceNode implements IFileNode {