mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
resolves #58: 'connecting' overlay not removed
Now that the 'status' message can be used also as an update
(since 2a14567
), extra care has to be taken with the popup
reconnecting overlay
This commit is contained in:
parent
b1dc0d62a0
commit
d241d6757f
@ -44,6 +44,7 @@ const WebsocketHandler = function() {
|
|||||||
if (!this.comp)
|
if (!this.comp)
|
||||||
return console.error("Page component was undefined");
|
return console.error("Page component was undefined");
|
||||||
else {
|
else {
|
||||||
|
this.comp.$root.connected = true;
|
||||||
this.comp.$root.showNotify(msg.type, msg.data);
|
this.comp.$root.showNotify(msg.type, msg.data);
|
||||||
if(typeof this.comp[msg.type] === 'function')
|
if(typeof this.comp[msg.type] === 'function')
|
||||||
this.comp[msg.type](msg.data);
|
this.comp[msg.type](msg.data);
|
||||||
|
Loading…
Reference in New Issue
Block a user