FIX: remove dev leftover

This commit is contained in:
Tony Air 2022-03-28 14:08:24 +02:00
parent fb0f1951c3
commit bfe7826329

View File

@ -2,7 +2,6 @@
namespace A2nt\CMSNiceties\Dashboard; namespace A2nt\CMSNiceties\Dashboard;
use App\Models\VacancyCandidate;
use SilverStripe\Admin\LeftAndMain; use SilverStripe\Admin\LeftAndMain;
use SilverStripe\Assets\File; use SilverStripe\Assets\File;
use SilverStripe\CMS\Model\SiteTree; use SilverStripe\CMS\Model\SiteTree;
@ -11,14 +10,12 @@ use SilverStripe\ORM\ArrayList;
class Dashboard extends LeftAndMain class Dashboard extends LeftAndMain
{ {
private static $menu_title = "Dashboard"; private static $menu_title = "Dashboard";
private static $url_segment = "dashboard"; private static $url_segment = "dashboard";
private static $menu_priority = 100; private static $menu_priority = 100;
private static $url_priority = 30; private static $url_priority = 30;
private static $menu_icon_class = 'font-icon-dashboard'; private static $menu_icon_class = 'font-icon-dashboard';
private static $managed_models = [ private static $managed_models = [];
VacancyCandidate::class,
];
protected static function getRecentObjects($class, $limit = 10) protected static function getRecentObjects($class, $limit = 10)
{ {
@ -40,7 +37,7 @@ class Dashboard extends LeftAndMain
public function RecentObjects() public function RecentObjects()
{ {
$models = self::config()->get('managed_models'); $models = self::config()->get('managed_models');
if(!count($models)){ if (!count($models)) {
return null; return null;
} }