diff --git a/src/main/webui/src/app/components/content/common/StoreListingWidget.jsx b/src/main/webui/src/app/components/content/common/StoreListingWidget.jsx index 7ee6d75..737acd5 100644 --- a/src/main/webui/src/app/components/content/common/StoreListingWidget.jsx +++ b/src/main/webui/src/app/components/content/common/StoreListingWidget.jsx @@ -29,17 +29,24 @@ LocalURLSection.propTypes = { }; // For options, see AppUtils.remoteOptions|hostedOptions -const CapabilitiesSection = ({options}) =>
- {' '} - { - options.map(option =>
- {option.icon} -
) - } -
; +const CapabilitiesSection = ({store}) => { + if(store.type==="remote" || store.type==="hosted"){ + const options = Utils.storeOptions(store); + const styleClass = store.type==="remote"?"left-half":"right-half"; + return
+ {' '} + { + options.map(option =>
+ {option.icon} +
) + } +
; + } + return ; +}; CapabilitiesSection.propTypes = { - options: PropTypes.array + store: PropTypes.object }; const StoreNameSection = ({store, storeClass}) =>
@@ -75,10 +82,11 @@ const StoreListingWidget = ({storeList, disableMap, storeType}) => { {store.url}
} + { storeType === "hosted" && } -
- -
+ { + storeType === "remote" &&
+ }
{store.description}