Skip to content

Commit

Permalink
feat(topology): added default runtime icon to topology nodes (janus-i…
Browse files Browse the repository at this point in the history
  • Loading branch information
debsmita1 authored Feb 2, 2024
1 parent cc2343f commit 5a8b27d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/topology/src/data-transforms/data-transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const getBaseTopologyDataModel = (resources: K8sResponseData): Model => {
resource,
item,
TYPE_WORKLOAD,
'',
'icon-default',
getUrlForResource(resources, resource),
{
podsData: getPodsDataForResource(resource, resources),
Expand Down
1 change: 1 addition & 0 deletions plugins/topology/src/imgs/logos/defaulthub.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion plugins/topology/src/utils/icons.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import defaultImg from '../imgs/logos/defaulthub.svg';
import djangoImg from '../imgs/logos/django.svg';
import dotnetImg from '../imgs/logos/dotnet.svg';
import drupalImg from '../imgs/logos/drupal.svg';
Expand Down Expand Up @@ -48,7 +49,8 @@ const logos = new Map<string, any>()
.set('icon-rh-openjdk', openjdkImg)
.set('icon-ruby', rubyImg)
.set('icon-spring', springImg)
.set('icon-spring-boot', springBootImg);
.set('icon-spring-boot', springBootImg)
.set('icon-default', defaultImg);

export const getImageForIconClass = (iconClass: string): string => {
return logos.get(iconClass);
Expand Down

0 comments on commit 5a8b27d

Please sign in to comment.