]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add projects view to sidebar
authorJulius Härtl <jus@bitgrid.net>
Tue, 9 Jul 2019 10:49:09 +0000 (12:49 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Tue, 29 Oct 2019 11:56:00 +0000 (12:56 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files_sharing/src/views/SharingTab.vue

index 5a9b24c36b3bb564b20eab30b7705763e0c339a1..4f16f4b243574d83464b0950d51bec5cc3ab4560 100644 (file)
 
                        <!-- internal link copy -->
                        <SharingEntryInternal :file-info="fileInfo" />
+
+                       <!-- projects -->
+                       <CollectionList v-if="fileInfo"
+                               :id="`${fileInfo.id}`"
+                               type="file"
+                               :name="fileInfo.name" />
                </template>
        </Tab>
 </template>
@@ -72,6 +78,7 @@ import { generateOcsUrl } from '@nextcloud/router'
 import Tab from 'nextcloud-vue/dist/Components/AppSidebarTab'
 import Avatar from 'nextcloud-vue/dist/Components/Avatar'
 import axios from '@nextcloud/axios'
+import { CollectionList } from 'nextcloud-vue-collections'
 
 import { shareWithTitle } from '../utils/SharedWithMe'
 import Share from '../models/Share'
@@ -88,6 +95,7 @@ export default {
 
        components: {
                Avatar,
+               CollectionList,
                SharingEntryInternal,
                SharingEntrySimple,
                SharingInput,