properly update toolbar if auth enabled

pull/433/head
isymchych 9 years ago
parent 3a00837107
commit f56eb3440a
  1. 2
      modules/UI/UI.js
  2. 6
      modules/UI/toolbars/Toolbar.js

@ -739,6 +739,8 @@ UI.notifyTokenAuthFailed = function () {
UI.updateAuthInfo = function (isAuthEnabled, login) {
let loggedIn = !!login;
Toolbar.showAuthenticateButton(isAuthEnabled);
if (isAuthEnabled) {
Toolbar.setAuthenticatedIdentity(login);

@ -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"});
}
},

Loading…
Cancel
Save