mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[start page] wrong error showed
This commit is contained in:
@ -255,9 +255,10 @@ window.LoginDlg = function(opts) {
|
||||
};
|
||||
|
||||
function showLoginError(error, focusel) {
|
||||
!error && (error = 'connection internal error');
|
||||
let $lbl = $el.find('#auth-error');
|
||||
|
||||
!!error && $lbl.text(error);
|
||||
$lbl.text(error);
|
||||
$lbl.fadeIn(100);
|
||||
|
||||
!!focusel && $el.find(focusel).addClass('error').focus();
|
||||
@ -418,7 +419,7 @@ window.LoginDlg = function(opts) {
|
||||
}
|
||||
}
|
||||
|
||||
showLoginError(obj.status, '#auth-portal');
|
||||
showLoginError(obj.response.statusText, '#auth-portal');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user