style(ui): increase toast notification delay from 3 to 5 seconds
This commit is contained in:
@@ -31,9 +31,9 @@ function showToast(type, message) {
|
|||||||
// Добавляем цвет фона
|
// Добавляем цвет фона
|
||||||
toastElement.classList.add(bgClass, 'text-white');
|
toastElement.classList.add(bgClass, 'text-white');
|
||||||
|
|
||||||
// Создаём и показываем toast (автоматически скроется через 3 секунды)
|
// Создаём и показываем toast (автоматически скроется через 5 секунд - стандарт Bootstrap)
|
||||||
const toast = new bootstrap.Toast(toastElement, {
|
const toast = new bootstrap.Toast(toastElement, {
|
||||||
delay: 3000,
|
delay: 5000,
|
||||||
autohide: true
|
autohide: true
|
||||||
});
|
});
|
||||||
toast.show();
|
toast.show();
|
||||||
|
|||||||
Reference in New Issue
Block a user