Skip to content

Commit

Permalink
0004943: Made DbImportDialog notifications close automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Sep 7, 2021
1 parent 7a0068a commit 47201ac
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -253,12 +253,12 @@ public OutputStream receiveUpload(String filename, String mimeType) {
try {
doDbImport();
close();
Notification successNotification = new Notification("Successful Import");
Notification successNotification = new Notification("Successful Import", 10000);
successNotification.addThemeVariants(NotificationVariant.LUMO_SUCCESS);
successNotification.open();
} catch (Exception e) {
log.warn(e.getMessage(), e);
Notification errorNotification = new Notification(e.getMessage());
Notification errorNotification = new Notification(e.getMessage(), 10000);
errorNotification.addThemeVariants(NotificationVariant.LUMO_ERROR);
errorNotification.open();
} finally {
Expand Down

0 comments on commit 47201ac

Please sign in to comment.