mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 09:05:46 +00:00
FIX: remove dev leftover
This commit is contained in:
parent
fb0f1951c3
commit
bfe7826329
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user