@@ -199,14 +199,14 @@ const clearChargingStations = (): void => {
199199 }
200200}
201201
202- const uiClient = useUIClient ()
202+ const $ uiClient = useUIClient ()
203203
204204const $toast = useToast ()
205205
206206const getSimulatorState = (): void => {
207207 if (state .value .gettingSimulatorState === false ) {
208208 state .value .gettingSimulatorState = true
209- uiClient
209+ $ uiClient
210210 .simulatorState ()
211211 .then ((response : ResponsePayload ) => {
212212 simulatorState .value = response .state as SimulatorState
@@ -225,7 +225,7 @@ const getSimulatorState = (): void => {
225225const getTemplates = (): void => {
226226 if (state .value .gettingTemplates === false ) {
227227 state .value .gettingTemplates = true
228- uiClient
228+ $ uiClient
229229 .listTemplates ()
230230 .then ((response : ResponsePayload ) => {
231231 if (app != null ) {
@@ -247,7 +247,7 @@ const getTemplates = (): void => {
247247const getChargingStations = (): void => {
248248 if (state .value .gettingChargingStations === false ) {
249249 state .value .gettingChargingStations = true
250- uiClient
250+ $ uiClient
251251 .listChargingStations ()
252252 .then ((response : ResponsePayload ) => {
253253 if (chargingStationsRef != null ) {
@@ -273,22 +273,22 @@ const getData = (): void => {
273273}
274274
275275const registerWSEventListeners = () => {
276- uiClient .registerWSEventListener (' open' , getData )
277- uiClient .registerWSEventListener (' error' , clearChargingStations )
278- uiClient .registerWSEventListener (' close' , clearChargingStations )
276+ $ uiClient .registerWSEventListener (' open' , getData )
277+ $ uiClient .registerWSEventListener (' error' , clearChargingStations )
278+ $ uiClient .registerWSEventListener (' close' , clearChargingStations )
279279}
280280
281281const unregisterWSEventListeners = () => {
282- uiClient .unregisterWSEventListener (' open' , getData )
283- uiClient .unregisterWSEventListener (' error' , clearChargingStations )
284- uiClient .unregisterWSEventListener (' close' , clearChargingStations )
282+ $ uiClient .unregisterWSEventListener (' open' , getData )
283+ $ uiClient .unregisterWSEventListener (' error' , clearChargingStations )
284+ $ uiClient .unregisterWSEventListener (' close' , clearChargingStations )
285285}
286286
287287let unsubscribeRefresh: (() => void ) | undefined
288288
289289onMounted (() => {
290290 registerWSEventListeners ()
291- unsubscribeRefresh = uiClient .onRefresh (() => {
291+ unsubscribeRefresh = $ uiClient .onRefresh (() => {
292292 getChargingStations ()
293293 })
294294})
@@ -310,7 +310,7 @@ const uiServerConfigurations: {
310310}))
311311
312312const startSimulator = (): void => {
313- uiClient
313+ $ uiClient
314314 .startSimulator ()
315315 .then (() => {
316316 return $toast .success (' Simulator successfully started' )
@@ -324,7 +324,7 @@ const startSimulator = (): void => {
324324 })
325325}
326326const stopSimulator = (): void => {
327- uiClient
327+ $ uiClient
328328 .stopSimulator ()
329329 .then (() => {
330330 clearChargingStations ()
0 commit comments