properly update toolbar if auth enabled
This commit is contained in:
parent
3a00837107
commit
f56eb3440a
|
@ -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…
Reference in New Issue