From fd126bdb58ebc6fa906ae8582f3eabdcbb05d2bc Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 22 Jul 2024 11:11:10 +0200 Subject: [PATCH] Dont load config ocm.openRemotely from config.json, instead set based on cernFeatures (#11249) * Dont load config ocm.openRemotely from config.json, instead set based on cernFeatures * Dont load config ocm.openRemotely from config.json, instead set based on cernFeatures --- .../web-pkg/src/composables/piniaStores/config/config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/web-pkg/src/composables/piniaStores/config/config.ts b/packages/web-pkg/src/composables/piniaStores/config/config.ts index 7247cc254d2..ba1f5eeebfa 100644 --- a/packages/web-pkg/src/composables/piniaStores/config/config.ts +++ b/packages/web-pkg/src/composables/piniaStores/config/config.ts @@ -27,7 +27,9 @@ const defaultOptions = { enabled: false, target: 'resources' }, - ocm: {}, + ocm: { + openRemotely: false + }, openAppsInTab: false, routing: { idBased: true @@ -81,6 +83,8 @@ export const useConfigStore = defineStore('config', () => { if (data.options) { options.value = merge({ ...defaultOptions }, data.options) + // ocm.openRemotely will not be loaded from config, but set based on cernFeatures option + unref(options).ocm.openRemotely = unref(options).cernFeatures } if (data.external_apps) {