mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-29 03:10:51 +00:00
fixes part 3
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
<!--File Icon-->
|
<!--File Icon-->
|
||||||
<FileIconThumbnail
|
<FileIconThumbnail
|
||||||
v-if="isFile || isVideo || isAudio || (isImage && !item.data.attributes.thumbnail)"
|
v-if="isFile || isVideo || isAudio || (isImage && !item.data.attributes.thumbnail)"
|
||||||
:item="item"
|
:entry="item"
|
||||||
class="pr-2"
|
class="pr-2"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -152,7 +152,10 @@ const mutations = {
|
|||||||
UPDATE_SHARED_ITEM(state, data) {
|
UPDATE_SHARED_ITEM(state, data) {
|
||||||
state.entries.find((item) => {
|
state.entries.find((item) => {
|
||||||
if (item.data.id === data.data.attributes.item_id) {
|
if (item.data.id === data.data.attributes.item_id) {
|
||||||
item.data.relationships.shared = data
|
item.data.relationships = {
|
||||||
|
...item.data.relationships,
|
||||||
|
...{shared: data}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -238,7 +238,6 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$store.commit('SET_CURRENT_TEAM_FOLDER', undefined)
|
|
||||||
this.$store.dispatch('getSharedWithMeFolder', this.$route.params.id)
|
this.$store.dispatch('getSharedWithMeFolder', this.$route.params.id)
|
||||||
|
|
||||||
events.$on('context-menu:show', (event, item) => (this.item = item))
|
events.$on('context-menu:show', (event, item) => (this.item = item))
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class TeamFoldersController extends Controller
|
|||||||
// Collect folders and files to single array
|
// Collect folders and files to single array
|
||||||
return [
|
return [
|
||||||
'folders' => new FolderCollection($folders),
|
'folders' => new FolderCollection($folders),
|
||||||
'files' => isset($files) ? new FilesCollection($files) : [],
|
'files' => isset($files) ? new FilesCollection($files) : new FilesCollection([]),
|
||||||
'root' => $id ? new FolderResource(Folder::findOrFail($id)) : null,
|
'root' => $id ? new FolderResource(Folder::findOrFail($id)) : null,
|
||||||
'teamFolder' => $id ? new FolderResource(Folder::findOrFail($id)->getLatestParent()) : null,
|
'teamFolder' => $id ? new FolderResource(Folder::findOrFail($id)->getLatestParent()) : null,
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user