Skip to content

Commit

Permalink
0004943: Fixed import buttons only working once
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Oct 4, 2021
1 parent 3e8f4e4 commit 761be44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -153,6 +153,7 @@ private void buildUploadButton(String title, final String value) {

LobUploader lobUploader = new LobUploader();
final Upload upload = new Upload(lobUploader);
upload.setMaxFiles(100);
upload.setDropLabel(new Span("Upload new " + table.getColumnWithName(title).getMappedType()));
upload.addSucceededListener(lobUploader);

Expand Down
Expand Up @@ -266,6 +266,7 @@ public OutputStream receiveUpload(String filename, String mimeType) {
deleteFileAndResource();
}
});
upload.setMaxFiles(100);
upload.setDropAllowed(false);
Button uploadButton = new Button("Import");
uploadButton.addThemeVariants(ButtonVariant.LUMO_PRIMARY);
Expand Down

0 comments on commit 761be44

Please sign in to comment.