Show error box if an error occurs during loading of a datatable.

This commit is contained in:
Jan Böhmer 2022-08-20 01:46:49 +02:00
parent 271f070141
commit 3dde40b91d
2 changed files with 61 additions and 46 deletions

View file

@ -84,6 +84,8 @@ class HomepageController extends AbstractController
*/
public function homepage(Request $request, GitVersionInfo $versionInfo): Response
{
throw new \RuntimeException("Test");
if ($this->isGranted('@tools.lastActivity')) {
$table = $this->dataTable->createFromType(
LogDataTable::class,