From 28ac8f941bf26282dc416f00d4fa5d2bbcc37ed6 Mon Sep 17 00:00:00 2001 From: abuoyoyo Date: Sat, 16 Jul 2022 22:37:57 +0300 Subject: [PATCH] Do not auto-collapse when error notice is shown --- js/notice_manager_panel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/notice_manager_panel.js b/js/notice_manager_panel.js index 3198b1a..e074dba 100644 --- a/js/notice_manager_panel.js +++ b/js/notice_manager_panel.js @@ -94,10 +94,11 @@ var NoticeManager = (function ($, document) { /** * auto-close notices panel after short delay * only auto-close if we have collected notices previously + * only auto-close if no error messages */ if (options.auto_collapse) { wait(4000).then(() => { - if (haveClosed) { + if (haveClosed && NoticeManager.getNoticesTopPriority() != 'error') { screenMeta.close(panel, button); } });