summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-08-17 04:03:47 +0000
committerChristopher Ng <chrng8@gmail.com>2022-08-18 01:50:37 +0000
commit7a13388fe94411b527b8f78db3a25598b9700544 (patch)
treeaa16244a690ec2ca4124e69903e5298f3bc5adf2 /apps
parent2f538bb20f7859b2f09d0d088be9ee47c6cdadde (diff)
downloadnextcloud-server-7a13388fe94411b527b8f78db3a25598b9700544.tar.gz
nextcloud-server-7a13388fe94411b527b8f78db3a25598b9700544.zip
Hide deprecated projects in sharing tab by default
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/src/views/SharingTab.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue
index 53e48dfa1e9..b381dfc2f14 100644
--- a/apps/files_sharing/src/views/SharingTab.vue
+++ b/apps/files_sharing/src/views/SharingTab.vue
@@ -69,7 +69,7 @@
<SharingEntryInternal :file-info="fileInfo" />
<!-- projects -->
- <CollectionList v-if="fileInfo"
+ <CollectionList v-if="projectsEnabled && fileInfo"
:id="`${fileInfo.id}`"
type="file"
:name="fileInfo.name" />
@@ -90,6 +90,7 @@ import { CollectionList } from 'nextcloud-vue-collections'
import { generateOcsUrl } from '@nextcloud/router'
import Avatar from '@nextcloud/vue/dist/Components/Avatar'
import axios from '@nextcloud/axios'
+import { loadState } from '@nextcloud/initial-state'
import Config from '../services/ConfigService'
import { shareWithTitle } from '../utils/SharedWithMe'
@@ -136,6 +137,7 @@ export default {
linkShares: [],
sections: OCA.Sharing.ShareTabSections.getSections(),
+ projectsEnabled: loadState('core', 'projects_enabled', false),
}
},