File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,13 @@ class CsvNode implements ClusterExplorerV1.Node, ClusterExplorerV1.ClusterExplor
2121 }
2222
2323 getTreeItem ( ) : TreeItem {
24+ const displayName = this . crdDescription . displayName ? this . crdDescription . displayName : '' ;
25+ const nameVersion = `${ this . crdDescription . name } /${ this . crdDescription . version } ` ;
26+ const label = displayName ? `${ displayName } (${ nameVersion } )` : nameVersion ;
2427 return {
25- label : this . crdDescription . displayName ,
26- contextValue : 'openshift.resource.csv.crdDescription'
28+ label,
29+ contextValue : 'openshift.resource.csv.crdDescription' ,
30+ tooltip : `Name: ${ this . crdDescription . name } \nVersion: ${ this . crdDescription . version } \nKind: ${ this . crdDescription . kind } \nDescription: ${ this . crdDescription . description || 'N/A' } `
2731 }
2832 }
2933}
You can’t perform that action at this time.
0 commit comments