mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-09 05:48:20 +00:00
Added successful delete message
This commit is contained in:
parent
737fac7bab
commit
608d42b412
@ -334,6 +334,8 @@ public class DefaultDbAdminController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
saveAction(new UserAction(schema.getTableName(), id, "DELETE", schema.getClassName()));
|
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;
|
return "redirect:/" + properties.getBaseUrl() + "/model/" + className;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user