diff --git a/frontend/public/components/catalog/catalog-item-icon.tsx b/frontend/public/components/catalog/catalog-item-icon.tsx index 550b39a4b1..9415b505dd 100644 --- a/frontend/public/components/catalog/catalog-item-icon.tsx +++ b/frontend/public/components/catalog/catalog-item-icon.tsx @@ -14,6 +14,7 @@ import * as ansibleImg from '../../imgs/logos/ansible.svg'; import * as apacheImg from '../../imgs/logos/apache.svg'; import * as beakerImg from '../../imgs/logos/beaker.svg'; import * as capedwarfImg from '../../imgs/logos/capedwarf.svg'; +import * as catalogImg from '../../imgs/logos/catalog-icon.svg'; import * as cassandraImg from '../../imgs/logos/cassandra.svg'; import * as clojureImg from '../../imgs/logos/clojure.svg'; import * as codeigniterImg from '../../imgs/logos/codeigniter.svg'; @@ -98,6 +99,7 @@ const logos = new Map() .set('icon-apache', apacheImg) .set('icon-beaker', beakerImg) .set('icon-capedwarf', capedwarfImg) + .set('icon-catalog', catalogImg) .set('icon-cassandra', cassandraImg) .set('icon-clojure', clojureImg) .set('icon-codeigniter', codeigniterImg) @@ -184,7 +186,7 @@ export const getImageForIconClass = (iconClass) => { }; export const getServiceClassIcon = (serviceClass) => { - return _.get(serviceClass, ['spec', 'externalMetadata', 'console.openshift.io/iconClass'], 'fa fa-clone'); + return _.get(serviceClass, ['spec', 'externalMetadata', 'console.openshift.io/iconClass'], logos.get('icon-catalog')); }; export const getServiceClassImage = (serviceClass) => { diff --git a/frontend/public/components/catalog/catalog-items.jsx b/frontend/public/components/catalog/catalog-items.jsx index b10ba7ef8d..1463afdb2a 100644 --- a/frontend/public/components/catalog/catalog-items.jsx +++ b/frontend/public/components/catalog/catalog-items.jsx @@ -1,6 +1,7 @@ import * as React from 'react'; import * as _ from 'lodash-es'; import * as PropTypes from 'prop-types'; +import * as catalogImg from '../../imgs/logos/catalog-icon.svg'; import { CatalogTile } from 'patternfly-react-extensions'; import { Modal } from 'patternfly-react'; @@ -172,13 +173,14 @@ export class CatalogTileViewPage extends React.Component { const uid = obj.metadata.uid; const iconClass = tileIconClass ? normalizeIconClass(tileIconClass) : null; const vendor = tileProvider ? `provided by ${tileProvider}` : null; + const iconImgUrl = tileImgUrl || catalogImg; return ( this.openOverlay(item)} title={tileName} - iconImg={tileImgUrl} + iconImg={iconImgUrl} iconClass={iconClass} vendor={vendor} description={tileDescription} /> diff --git a/frontend/public/imgs/logos/catalog-icon.svg b/frontend/public/imgs/logos/catalog-icon.svg new file mode 100644 index 0000000000..03b4b02143 --- /dev/null +++ b/frontend/public/imgs/logos/catalog-icon.svg @@ -0,0 +1 @@ +Asset 2 \ No newline at end of file