Skip to content

Commit

Permalink
Merge branch '1.5' into 1
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Apr 20, 2020
2 parents 091d7ee + 1da24a3 commit 331ce4a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/dist/styles/bundle.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion client/src/components/AssetDropzone/AssetDropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ class AssetDropzone extends Component {

componentWillUnmount() {
// Remove all dropzone event listeners.
this.dropzone.files = [];
this.dropzone.destroy();
}

/**
* Gets the default optiions to instanciate dropzone with.
* Gets the default options to instantiate dropzone with.
*
* @return object
*/
Expand Down
9 changes: 1 addition & 8 deletions code/Controller/AssetAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,6 @@ class AssetAdmin extends LeftAndMain implements PermissionProvider
*/
private static $page_length = 50;

/**
* @config
* @see Upload->allowedMaxFileSize
* @var int
*/
private static $allowed_max_file_size;

/**
* @config
*
Expand All @@ -102,7 +95,7 @@ class AssetAdmin extends LeftAndMain implements PermissionProvider
/**
* @config
*
* @var int The max file size, in megabytes
* @var int The max file size, in bytes or INI format
*/
private static $max_upload_size;

Expand Down
5 changes: 5 additions & 0 deletions code/Extensions/CampaignAdminExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use SilverStripe\Assets\File;
use SilverStripe\Core\Extension;
use SilverStripe\Forms\FormAction;
use SilverStripe\Security\Permission;

/**
* Extension that updates the Popover menu of `FileFormFactory`.
Expand All @@ -21,6 +22,10 @@ class CampaignAdminExtension extends Extension
*/
public function updatePopoverActions(&$actions, $record)
{
if (!Permission::check('CMS_ACCESS_CampaignAdmin')) {
return;
}

if ($record && $record->canPublish()) {
$action = FormAction::create(
'addtocampaign',
Expand Down

0 comments on commit 331ce4a

Please sign in to comment.