mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-07 10:10:56 +00:00
Resolve "Show error when the web-frontend can't connect to the backend when rending the page server side."
This commit is contained in:
parent
8be40dc02a
commit
6d1d3c86a7
6 changed files with 22 additions and 23 deletions
web-frontend/modules/core/plugins
|
@ -127,8 +127,8 @@ export class RealTimeHandler {
|
|||
* navigating to another page that doesn't require updates.
|
||||
*/
|
||||
disconnect() {
|
||||
if (!this.connected) {
|
||||
return
|
||||
if (this.connected) {
|
||||
this.socket.close()
|
||||
}
|
||||
|
||||
this.context.store.dispatch('notification/setConnecting', false)
|
||||
|
@ -136,7 +136,6 @@ export class RealTimeHandler {
|
|||
this.reconnect = false
|
||||
this.attempts = 0
|
||||
this.connected = false
|
||||
this.socket.close()
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue