Commit 885c553e authored by JC Brand's avatar JC Brand

Bugfix. Login panel wasn't being rendered after logging out

parent 373b1cd3
...@@ -49,10 +49,10 @@ ...@@ -49,10 +49,10 @@
}, },
onDisconnected: function () { onDisconnected: function () {
if (!converse.auto_reconnect) { var result = this._super.onDisconnected.apply(this, arguments);
if (result === 'disconnected') {
converse.renderLoginPanel(); converse.renderLoginPanel();
} }
return this._super.onDisconnected.apply(this, arguments);
}, },
_tearDown: function () { _tearDown: function () {
......
...@@ -447,8 +447,10 @@ ...@@ -447,8 +447,10 @@
) )
) { ) {
converse.reconnect(condition); converse.reconnect(condition);
return 'reconnecting';
} else { } else {
converse.giveFeedback(__('Disconnected'), 'error'); converse.giveFeedback(__('Disconnected'));
return 'disconnected';
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment