Do not auto-collapse when error notice is shown

This commit is contained in:
abuoyoyo 2022-07-16 22:37:57 +03:00
parent eabafb460f
commit 28ac8f941b

View File

@ -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);
}
});