Various fixes plus support for defaultPath selection when async data

This commit is contained in:
Djamil Legato
2019-06-05 22:07:07 -07:00
parent 0ef89856fb
commit aa56662aa2
4 changed files with 21 additions and 35 deletions

View File

@@ -1504,6 +1504,7 @@ class AdminController extends AdminBaseController
$payload = [
'name' => $file_page ? $file_page->title() : $fileInfo->getFilename(),
'value' => $file_page ? $file_page->route() : $file_path,
'item-key' => basename($file_page ? $file_page->route() : $file_path),
'filename' => $fileInfo->getFilename(),
'extension' => $type === 'dir' ? '' : $fileInfo->getExtension(),
'type' => $type,