diff --git a/src/public/javascripts/services/info.js b/src/public/javascripts/services/info.js index eca5e7809..c3eb76f8f 100644 --- a/src/public/javascripts/services/info.js +++ b/src/public/javascripts/services/info.js @@ -28,11 +28,9 @@ function showError(message, delay = 10000) { function getNotifySettings(type, delay) { return { - element: (glob.activeDialog && glob.activeDialog.hasClass("show")) - ? glob.activeDialog.find('.modal-header')[0] - : 'body', + element: 'body', type: type, - z_index: 1031, + z_index: 90000, placement: { from: "top", align: "center" diff --git a/src/public/javascripts/services/protected_session.js b/src/public/javascripts/services/protected_session.js index 40c421fbd..e4f824474 100644 --- a/src/public/javascripts/services/protected_session.js +++ b/src/public/javascripts/services/protected_session.js @@ -57,7 +57,7 @@ async function setupProtectedSession() { const response = await enterProtectedSessionOnServer(password); if (!response.success) { - infoService.showError("Wrong password."); + infoService.showError("Wrong password.", 3000); return; }