refresh list after deleting report
This commit is contained in:
parent
da4fda7cae
commit
aa4610ef39
1 changed files with 4 additions and 1 deletions
|
@ -55,7 +55,10 @@ public class ReportList extends MyGrid<Report> {
|
|||
if (SecurityUtils.hasPermission(app, Permission.Level.EDIT)) {
|
||||
ButtonRenderer<Report> renderer = new ButtonRenderer<>(e -> new Popup().setTitle("Confirm")
|
||||
.addComponent(new Label("Are you sure you want to delete this report?"))
|
||||
.addYesNoButtons(p -> reportDeleter.accept(e.getItem()), true)
|
||||
.addYesNoButtons(p -> {
|
||||
reportDeleter.accept(e.getItem());
|
||||
getDataProvider().refreshAll();
|
||||
}, true)
|
||||
.show());
|
||||
renderer.setHtmlContentAllowed(true);
|
||||
addColumn(report -> VaadinIcons.TRASH.getHtml(),
|
||||
|
|
Loading…
Reference in a new issue