mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 19:57:36 +08:00
Show only last critical error on client #PL-1989
This commit is contained in:
parent
1b9ad4a018
commit
fea2fff7c9
@ -1184,11 +1184,16 @@ public class ApplicationConnection {
|
||||
}
|
||||
|
||||
if (html.length() != 0) {
|
||||
if (errorNotification != null)
|
||||
errorNotification.hide();
|
||||
|
||||
/* 45 min */
|
||||
VNotification n = new VNotification(1000 * 60 * 45);
|
||||
n.addEventListener(new NotificationRedirect(url));
|
||||
n.show(html, VNotification.CENTERED_TOP,
|
||||
VNotification.STYLE_SYSTEM);
|
||||
|
||||
errorNotification = n;
|
||||
} else {
|
||||
redirect(url);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user