Upgrade to 3.0.3
This commit is contained in:
@@ -109,11 +109,15 @@ return [
|
||||
];
|
||||
}
|
||||
|
||||
// the drag text needs to be absolute when the files come from
|
||||
// a different parent model
|
||||
$dragTextAbsolute = $this->model->is($this->parent) === false;
|
||||
|
||||
foreach ($this->files as $file) {
|
||||
$image = $file->panelImage($this->image, $thumb);
|
||||
|
||||
$data[] = [
|
||||
'dragText' => $file->dragText($this->dragTextType),
|
||||
'dragText' => $file->dragText($this->dragTextType, $dragTextAbsolute),
|
||||
'filename' => $file->filename(),
|
||||
'id' => $file->id(),
|
||||
'text' => $file->toString($this->text),
|
||||
|
@@ -5,8 +5,8 @@ return [
|
||||
/**
|
||||
* Sets the text for the empty state box
|
||||
*/
|
||||
'empty' => function (string $empty = null) {
|
||||
return I18n::translate($empty);
|
||||
'empty' => function ($empty = null) {
|
||||
return I18n::translate($empty, $empty);
|
||||
}
|
||||
],
|
||||
'methods' => [
|
||||
|
Reference in New Issue
Block a user