Do not auto-collapse when error notice is shown
This commit is contained in:
parent
eabafb460f
commit
28ac8f941b
@ -94,10 +94,11 @@ var NoticeManager = (function ($, document) {
|
|||||||
/**
|
/**
|
||||||
* auto-close notices panel after short delay
|
* auto-close notices panel after short delay
|
||||||
* only auto-close if we have collected notices previously
|
* only auto-close if we have collected notices previously
|
||||||
|
* only auto-close if no error messages
|
||||||
*/
|
*/
|
||||||
if (options.auto_collapse) {
|
if (options.auto_collapse) {
|
||||||
wait(4000).then(() => {
|
wait(4000).then(() => {
|
||||||
if (haveClosed) {
|
if (haveClosed && NoticeManager.getNoticesTopPriority() != 'error') {
|
||||||
screenMeta.close(panel, button);
|
screenMeta.close(panel, button);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user