Skip to content

Commit

Permalink
Dont load config ocm.openRemotely from config.json, instead set based…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
AlexAndBear committed Jul 22, 2024
1 parent 1c8fd7d commit fd126bd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const defaultOptions = {
enabled: false,
target: 'resources'
},
ocm: {},
ocm: {
openRemotely: false
},
openAppsInTab: false,
routing: {
idBased: true
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit fd126bd

Please sign in to comment.