mirror of
https://github.com/zadam/trilium.git
synced 2025-01-18 21:22:56 +08:00
fix z-index of notification
This commit is contained in:
parent
d82898421e
commit
0d3bc22d73
2 changed files with 3 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue