diff --git a/app/static/js/app.js b/app/static/js/app.js index e2367b2..b29e185 100644 --- a/app/static/js/app.js +++ b/app/static/js/app.js @@ -587,7 +587,10 @@ function showNotification(message, type = 'info') { toastBody.textContent = message; toastEl.className = `toast bg-${type} text-white`; - const toast = new bootstrap.Toast(toastEl); + const toast = new bootstrap.Toast(toastEl, { + autohide: true, + delay: 1500 + }); toast.show(); } diff --git a/app/static/js/contacts.js b/app/static/js/contacts.js index bb7f632..e2b1933 100644 --- a/app/static/js/contacts.js +++ b/app/static/js/contacts.js @@ -581,7 +581,7 @@ function showToast(message, type = 'info') { // Show toast const toast = new bootstrap.Toast(toastEl, { autohide: true, - delay: 3000 + delay: 1500 }); toast.show(); } diff --git a/app/static/js/dm.js b/app/static/js/dm.js index e6db4ec..5380457 100644 --- a/app/static/js/dm.js +++ b/app/static/js/dm.js @@ -717,6 +717,9 @@ function showNotification(message, type = 'info') { } } - const toast = new bootstrap.Toast(toastEl, { delay: 3000 }); + const toast = new bootstrap.Toast(toastEl, { + autohide: true, + delay: 1500 + }); toast.show(); } diff --git a/app/templates/base.html b/app/templates/base.html index cf328c4..a950c9d 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -254,7 +254,7 @@ -