mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix z-index of notification
This commit is contained in:
parent
d82898421e
commit
0d3bc22d73
@ -28,11 +28,9 @@ function showError(message, delay = 10000) {
|
|||||||
|
|
||||||
function getNotifySettings(type, delay) {
|
function getNotifySettings(type, delay) {
|
||||||
return {
|
return {
|
||||||
element: (glob.activeDialog && glob.activeDialog.hasClass("show"))
|
element: 'body',
|
||||||
? glob.activeDialog.find('.modal-header')[0]
|
|
||||||
: 'body',
|
|
||||||
type: type,
|
type: type,
|
||||||
z_index: 1031,
|
z_index: 90000,
|
||||||
placement: {
|
placement: {
|
||||||
from: "top",
|
from: "top",
|
||||||
align: "center"
|
align: "center"
|
||||||
|
@ -57,7 +57,7 @@ async function setupProtectedSession() {
|
|||||||
const response = await enterProtectedSessionOnServer(password);
|
const response = await enterProtectedSessionOnServer(password);
|
||||||
|
|
||||||
if (!response.success) {
|
if (!response.success) {
|
||||||
infoService.showError("Wrong password.");
|
infoService.showError("Wrong password.", 3000);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user