File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
resources/js/components/assets/Browser Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -416,6 +416,7 @@ export default {
416416 folder: this .folder ,
417417 folderActionUrl: this .folderActionUrl ,
418418 folders: this .folders ,
419+ maxFiles: this .maxFiles ,
419420 restrictFolderNavigation: this .restrictFolderNavigation ,
420421 path: this .path ,
421422 creatingFolder: this .creatingFolder ,
Original file line number Diff line number Diff line change 117117 @click.stop =" selectionClicked(index, $event)"
118118 @dblclick.stop =" $emit('edit-asset', asset)"
119119 >
120- <div class =" relative flex aspect-square size-full items-center justify-center" >
120+ <div class =" relative flex aspect-square size-full items-center justify-center" :class = " { 'cursor-pointer': maxFiles === 1 } " >
121121 <div class =" asset-thumb" >
122122 <img
123123 v-if =" asset.thumbnail"
@@ -228,6 +228,7 @@ export default {
228228 assets: { type: Array },
229229 selectedAssets: { type: Array },
230230 thumbnailSize: { type: Number },
231+ maxFiles: { type: Number },
231232 showCheckerboard: { type: Boolean , default: false },
232233 checkerboardMode: { type: String , default: ' transparent' },
233234 },
You can’t perform that action at this time.
0 commit comments