Fixed file group accept type issue..
This commit is contained in:
parent
4c86ba6f07
commit
ff351be76e
@ -21,6 +21,16 @@ class File extends Form
|
|||||||
*/
|
*/
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
|
if (! empty($this->options)) {
|
||||||
|
$options = [];
|
||||||
|
|
||||||
|
foreach ($this->options as $option) {
|
||||||
|
$options[$option->id] = $option->name;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->options = $options;
|
||||||
|
}
|
||||||
|
|
||||||
return view('components.form.group.file');
|
return view('components.form.group.file');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,16 @@ class Ffile extends Form
|
|||||||
*/
|
*/
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
|
if (! empty($this->options)) {
|
||||||
|
$options = [];
|
||||||
|
|
||||||
|
foreach ($this->options as $option) {
|
||||||
|
$options[$option->id] = $option->name;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->options = $options;
|
||||||
|
}
|
||||||
|
|
||||||
return view('components.form.input.file');
|
return view('components.form.input.file');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -255,6 +255,7 @@ export default {
|
|||||||
download: attachment[0].downloadPath,
|
download: attachment[0].downloadPath,
|
||||||
dropzone: 'edit',
|
dropzone: 'edit',
|
||||||
};
|
};
|
||||||
|
|
||||||
this.dropzone.emit("addedfile", mockFile);
|
this.dropzone.emit("addedfile", mockFile);
|
||||||
this.dropzone.options.thumbnail.call(this.dropzone, mockFile, attachment[0].path);
|
this.dropzone.options.thumbnail.call(this.dropzone, mockFile, attachment[0].path);
|
||||||
|
|
||||||
@ -271,7 +272,6 @@ export default {
|
|||||||
this.onMaxFilesReached(this);
|
this.onMaxFilesReached(this);
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user