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 319310a commit afd9d30
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 afd9d30

Please sign in to comment.