fix(xo-web): dont try reconnecting websocket on sign out
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
### Bug fixes
|
||||
|
||||
- [Home] Always sort the items by their names as a secondary sort criteria [#3983](https://github.com/vatesfr/xen-orchestra/issues/3983) (PR [#4047](https://github.com/vatesfr/xen-orchestra/pull/4047))
|
||||
- Properly redirect to sign in page instead of being stuck in a refresh loop
|
||||
|
||||
### Released packages
|
||||
|
||||
|
||||
@@ -69,6 +69,9 @@ export const isVmRunning = vm => vm && vm.power_state === 'Running'
|
||||
// ===================================================================
|
||||
|
||||
export const signOut = () => {
|
||||
// prevent automatic reconnection
|
||||
xo.removeListener('closed', connect)
|
||||
|
||||
cookies.expire('token')
|
||||
window.location.reload(true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user