mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-09 00:32:05 -04:00
Pass the widget to addContent() directly
This commit is contained in:
parent
cc0d8176c2
commit
3f8ce5f832
4 changed files with 4 additions and 12 deletions
|
|
@ -31,12 +31,10 @@ class CommentsController extends Controller
|
|||
|
||||
yield $this->export($comments);
|
||||
|
||||
$commentList = (new CommentList($comments));
|
||||
|
||||
$this->addControl($paginationControl);
|
||||
$this->addControl($limitControl);
|
||||
$this->addControl($filterControl);
|
||||
|
||||
$this->addContent($commentList);
|
||||
$this->addContent(new CommentList($comments));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,8 +27,6 @@ class NotificationsController extends Controller
|
|||
$paginationControl = $this->createPaginationControl($notifications);
|
||||
$filterControl = $this->createFilterControl($notifications);
|
||||
|
||||
$notificationList = new NotificationList($notifications);
|
||||
|
||||
$this->filter($notifications);
|
||||
|
||||
yield $this->export($notifications);
|
||||
|
|
@ -37,6 +35,6 @@ class NotificationsController extends Controller
|
|||
$this->addControl($limitControl);
|
||||
$this->addControl($filterControl);
|
||||
|
||||
$this->addContent($notificationList);
|
||||
$this->addContent(new NotificationList($notifications));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,12 +24,10 @@ class UsergroupsController extends Controller
|
|||
|
||||
yield $this->export($usergroups);
|
||||
|
||||
$usergroupList = new UsergroupList($usergroups);
|
||||
|
||||
$this->addControl($paginationControl);
|
||||
$this->addControl($limitControl);
|
||||
$this->addControl($filterControl);
|
||||
|
||||
$this->addContent($usergroupList);
|
||||
$this->addContent(new UsergroupList($usergroups));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,12 +24,10 @@ class UsersController extends Controller
|
|||
|
||||
yield $this->export($users);
|
||||
|
||||
$userList = new UserList($users);
|
||||
|
||||
$this->addControl($paginationControl);
|
||||
$this->addControl($limitControl);
|
||||
$this->addControl($filterControl);
|
||||
|
||||
$this->addContent($userList);
|
||||
$this->addContent(new UserList($users));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue