Skip to content

Commit

Permalink
Refresh page after setting new global address
Browse files Browse the repository at this point in the history
This is a temporary fix for the problem of setting a new global address and the configuration not being done.
  • Loading branch information
rafaellehmkuhl committed Sep 27, 2023
1 parent 213d34c commit 2664af8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/ConfigurationGeneralView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ const addNewVehicleConnection = async (): Promise<void> => {
const setGlobalAddress = async (): Promise<void> => {
await globalAddressForm.value.validate()
mainVehicleStore.globalAddress = newGlobalAddress.value
// Temporary solution to actually set the address and connect the vehicle, since this is non-reactive today.
// TODO: Modify the store variables to be reactive.
location.reload()
}
const setWebRTCSignallingURI = async (): Promise<void> => {
Expand Down

0 comments on commit 2664af8

Please sign in to comment.