FIX: Minor improvements

This commit is contained in:
Tony Air 2022-07-12 13:10:46 +02:00
parent 22811d36c3
commit 9b0cb9092f

View File

@ -15,6 +15,7 @@ use Dynamic\FlexSlider\ORM\FlexSlider;
use SilverStripe\Assets\Image; use SilverStripe\Assets\Image;
use SilverStripe\Core\Injector\Injector; use SilverStripe\Core\Injector\Injector;
use SilverStripe\Forms\CheckboxField; use SilverStripe\Forms\CheckboxField;
use SilverStripe\Forms\GridField\GridField_ActionMenu;
use SilverStripe\Forms\LiteralField; use SilverStripe\Forms\LiteralField;
use SilverStripe\Forms\NumericField; use SilverStripe\Forms\NumericField;
use SilverStripe\Forms\ReadonlyField; use SilverStripe\Forms\ReadonlyField;
@ -129,6 +130,7 @@ class SliderElement extends ElementSlideshow
)); ));
$config = $grid->getConfig(); $config = $grid->getConfig();
$config->removeComponentsByType(GridField_ActionMenu::class);
$bulk = new BulkUploader('Image', SlideImage::class, false); $bulk = new BulkUploader('Image', SlideImage::class, false);
$bulk $bulk