Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

properly update toolbar if auth enabled

isymchychf56eb3440ad4
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index a15968ed1d..09b627a8ca 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -739,6 +739,8 @@ UI.notifyTokenAuthFailed = function () {
UI.updateAuthInfo = function (isAuthEnabled, login) {
let loggedIn = !!login;
+ Toolbar.showAuthenticateButton(isAuthEnabled);
+
if (isAuthEnabled) {
Toolbar.setAuthenticatedIdentity(login);
diff --git a/modules/UI/toolbars/Toolbar.js b/modules/UI/toolbars/Toolbar.js
index 6ab4d85dad..72431d0c4f 100644
--- a/modules/UI/toolbars/Toolbar.js
+++ b/modules/UI/toolbars/Toolbar.js
@@ -278,8 +278,7 @@ const Toolbar = {
showAuthenticateButton (show) {
if (UIUtil.isButtonEnabled('authentication') && show) {
$('#authentication').css({display: "inline"});
- }
- else {
+ } else {
$('#authentication').css({display: "none"});
}
},
@@ -288,8 +287,7 @@ const Toolbar = {
showRecordingButton (show) {
if (UIUtil.isButtonEnabled('recording') && show) {
$('#toolbar_button_record').css({display: "inline-block"});
- }
- else {
+ } else {
$('#toolbar_button_record').css({display: "none"});
}
},