From 628e3305af9d994ef2ffa47d44ce1df008595601 Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:40:44 -0300 Subject: [PATCH] fix(demo): clear status after upload completes --- .../flowingcode/vaadin/addons/uploadhelper/FileInfoDemo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/flowingcode/vaadin/addons/uploadhelper/FileInfoDemo.java b/src/test/java/com/flowingcode/vaadin/addons/uploadhelper/FileInfoDemo.java index efdf0c6..70dab53 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/uploadhelper/FileInfoDemo.java +++ b/src/test/java/com/flowingcode/vaadin/addons/uploadhelper/FileInfoDemo.java @@ -85,9 +85,9 @@ public OutputStream receiveUpload(String fileName, String MIMEType) { } if (Math.random() < 0.5) { - ui.access(() -> new FileInfo(ev).complete().update()); + ui.access(() -> new FileInfo(ev).complete().status("").update()); } else { - ui.access(() -> new FileInfo(ev).errorMessage("Random failure").update()); + ui.access(() -> new FileInfo(ev).errorMessage("Random failure").status("").update()); } processing.remove(ev.getFileName());