From 7a13388fe94411b527b8f78db3a25598b9700544 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 17 Aug 2022 04:03:47 +0000 Subject: Hide deprecated projects in sharing tab by default Signed-off-by: Christopher Ng --- apps/files_sharing/src/views/SharingTab.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps') 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 @@ - @@ -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), } }, -- cgit v1.2.3