@@ -10,7 +10,7 @@ import { WebDAV } from '@opencloud-eu/web-client/webdav'
1010import { Language } from 'vue3-gettext'
1111import { FetchEventSourceInit } from '@microsoft/fetch-event-source'
1212import { sse } from '@opencloud-eu/web-client/sse'
13- import { AuthStore , CapabilityStore , ConfigStore } from '../../composables'
13+ import { AuthStore , ConfigStore } from '../../composables'
1414import { createVaultWebDav } from './vaultWebDav'
1515
1616const createFetchOptions = ( authParams : AuthParameters , language : string ) : FetchEventSourceInit => {
@@ -28,14 +28,12 @@ export interface ClientServiceOptions {
2828 configStore : ConfigStore
2929 language : Language
3030 authStore : AuthStore
31- capabilityStore : CapabilityStore
3231}
3332
3433export class ClientService {
3534 private configStore : ConfigStore
3635 private language : Language
3736 private authStore : AuthStore
38- private capabilityStore : CapabilityStore
3937
4038 private httpAuthenticatedClient : HttpClient
4139 private httpUnAuthenticatedClient : HttpClient
@@ -56,7 +54,6 @@ export class ClientService {
5654 this . configStore = options . configStore
5755 this . language = options . language
5856 this . authStore = options . authStore
59- this . capabilityStore = options . capabilityStore
6057
6158 this . initGraphClient ( )
6259 this . initOcsClient ( )
@@ -145,7 +142,7 @@ export class ClientService {
145142 Object . assign ( config . headers , this . getDynamicHeaders ( ) )
146143 return config
147144 } )
148- this . oxClient = ox ( axiosClient , ( ) => this . capabilityStore . openXchangeApiUrl )
145+ this . oxClient = ox ( axiosClient , ( ) => this . configStore . options . oxAppSuite ?. apiUrl )
149146 }
150147
151148 private initWebDavClient ( ) {
0 commit comments