properly update toolbar if auth enabled

This commit is contained in:
isymchych 2015-12-21 13:27:36 +02:00
parent 3a00837107
commit f56eb3440a
2 changed files with 4 additions and 4 deletions

View File

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

View File

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