From 82c817c45233542a3e30f2ec08b5282296141579 Mon Sep 17 00:00:00 2001 From: torleif Date: Mon, 20 Apr 2020 09:40:57 +1200 Subject: [PATCH] Fixes #300 --- src/Admin/CommentsGridField.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Admin/CommentsGridField.php b/src/Admin/CommentsGridField.php index cde1eed..7c99074 100644 --- a/src/Admin/CommentsGridField.php +++ b/src/Admin/CommentsGridField.php @@ -3,10 +3,25 @@ namespace SilverStripe\Comments\Admin; use SilverStripe\Forms\GridField\GridField; +use SilverStripe\Forms\GridField\GridFieldConfig; +use SilverStripe\ORM\SS_List; use SilverStripe\View\HTML; class CommentsGridField extends GridField { + /** + * @param string $name + * @param string $title + * @param SS_List $dataList + * @param GridFieldConfig $config + */ + public function __construct($name, $title = null, SS_List $dataList = null, GridFieldConfig $config = null) + { + parent::__construct($name, $title, $dataList, $config); + + $this->addExtraClass('grid-field__filter-buttons'); + } + /** * {@inheritdoc} */