mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-07-31 17:21:13 +00:00
Added successful delete message
This commit is contained in:
@@ -334,7 +334,9 @@ public class DefaultDbAdminController {
|
||||
}
|
||||
|
||||
saveAction(new UserAction(schema.getTableName(), id, "DELETE", schema.getClassName()));
|
||||
|
||||
attr.addFlashAttribute("message", "Deleted " + schema.getJavaClass().getSimpleName() + " with "
|
||||
+ schema.getPrimaryKey().getName() + "=" + id);
|
||||
|
||||
return "redirect:/" + properties.getBaseUrl() + "/model/" + className;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user