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 3071034..7ee6d75 100644 --- a/src/main/webui/src/app/components/content/common/StoreListingWidget.jsx +++ b/src/main/webui/src/app/components/content/common/StoreListingWidget.jsx @@ -77,7 +77,7 @@ const StoreListingWidget = ({storeList, disableMap, storeType}) => { }
- +
{store.description}
diff --git a/src/main/webui/src/app/utils/AppUtils.js b/src/main/webui/src/app/utils/AppUtils.js index 0eb5e53..f5defc9 100644 --- a/src/main/webui/src/app/utils/AppUtils.js +++ b/src/main/webui/src/app/utils/AppUtils.js @@ -20,6 +20,15 @@ * useful in new UI and and decide if removing some of them. */ export const Utils = { + storeOptions: store => { + if(store.type==='remote') { + return Utils.remoteOptions(store); + } + if(store.type==='hosted'){ + return Utils.hostedOptions(store); + } + return []; + }, remoteOptions: store => { const options = []; if (store.type==="remote"){ diff --git a/src/main/webui/src/app/utils/RestClient.js b/src/main/webui/src/app/utils/RestClient.js index ba4c89b..89f64bc 100644 --- a/src/main/webui/src/app/utils/RestClient.js +++ b/src/main/webui/src/app/utils/RestClient.js @@ -14,8 +14,6 @@ * limitations under the License. */ -import {Utils} from "./AppUtils.js"; - const httpCall = (url, method, headers={}, payload) => fetch(url, { method, credentials: 'same-origin',