mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-09 05:28:56 -06:00
Use server URL from ocis-web config.json
This commit is contained in:
@@ -12,10 +12,7 @@ const appInfo = {
|
||||
id: 'settings',
|
||||
icon: 'application',
|
||||
isFileEditor: false,
|
||||
extensions: [],
|
||||
config: {
|
||||
url: 'https://localhost:9200'
|
||||
}
|
||||
extensions: []
|
||||
}
|
||||
|
||||
const routes = [
|
||||
|
||||
@@ -48,6 +48,7 @@ const mutations = {
|
||||
}
|
||||
|
||||
const actions = {
|
||||
// Used by ocis-web.
|
||||
loadConfig ({ commit }, config) {
|
||||
commit('LOAD_CONFIG', config)
|
||||
},
|
||||
@@ -60,7 +61,7 @@ const actions = {
|
||||
async fetchSettingsBundles ({ commit, dispatch, getters, rootGetters }) {
|
||||
injectAuthToken(rootGetters)
|
||||
const response = await BundleService_ListSettingsBundles({
|
||||
$domain: getters.config.url,
|
||||
$domain: rootGetters.configuration.server,
|
||||
body: {}
|
||||
})
|
||||
if (response.status === 201) {
|
||||
@@ -100,7 +101,7 @@ const actions = {
|
||||
async saveSettingsValue ({ commit, dispatch, getters, rootGetters }, payload) {
|
||||
injectAuthToken(rootGetters)
|
||||
const response = await ValueService_SaveSettingsValue({
|
||||
$domain: getters.config.url,
|
||||
$domain: rootGetters.configuration.server,
|
||||
body: {
|
||||
settingsValue: payload
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user