Skip to content

Commit

Permalink
Return original explorer icons for cluster/project/component
Browse files Browse the repository at this point in the history
This PR fixes #2582.

Signed-off-by: Denis Golovin dgolovin@redhat.com
  • Loading branch information
dgolovin committed Nov 1, 2022
1 parent 618ada5 commit f0cd2ba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Binary file added images/context/component-node-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/context/component-node-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/context/project-node.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions src/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ export class OpenShiftExplorer implements TreeDataProvider<ExplorerItem>, Dispos
return {
contextValue: 'openshift.k8sContext',
label: this.kubeConfig.getCluster(element.cluster).server,
collapsibleState: TreeItemCollapsibleState.Collapsed
collapsibleState: TreeItemCollapsibleState.Collapsed,
iconPath: path.resolve(__dirname, '../../images/context/cluster-node.png')
};
}

Expand All @@ -136,14 +137,17 @@ export class OpenShiftExplorer implements TreeDataProvider<ExplorerItem>, Dispos
contextValue: 'openshift.project',
label: element.metadata.name,
collapsibleState: TreeItemCollapsibleState.Collapsed,
iconPath: path.resolve(__dirname, '../../images/context/dark/project.svg')
iconPath: path.resolve(__dirname, '../../images/context/project-node.png')
}
}
return {
contextValue: 'openshift.k8sObject',
label: element.metadata.name,
collapsibleState: TreeItemCollapsibleState.None,
iconPath: element.kind === 'Deployment' ? path.resolve(__dirname, '../../images/context/dark/deployment.svg') : path.resolve(__dirname, '../../images/context/dark/deployment-config.svg')
iconPath: {
dark: path.resolve(__dirname, '../../images/context/component-node-dark.png'),
light: path.resolve(__dirname, '../../images/context/component-node-light.png')
}
};
}

Expand Down

0 comments on commit f0cd2ba

Please sign in to comment.