diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-25 08:15:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 08:15:24 +0200 |
commit | 405b5de6fa408841fb242d77ca7d37c1fb87efa4 (patch) | |
tree | ae34eb3ea22b926f73431889ee3a8ed0d19d99c6 /apps | |
parent | 56df202d5202f8748bb476afd91fe74cf0d1ea11 (diff) | |
parent | 7a13388fe94411b527b8f78db3a25598b9700544 (diff) | |
download | nextcloud-server-405b5de6fa408841fb242d77ca7d37c1fb87efa4.tar.gz nextcloud-server-405b5de6fa408841fb242d77ca7d37c1fb87efa4.zip |
Merge pull request #33569 from nextcloud/enh/hide-projects
Add config option to hide deprecated projects in sharing tab by default
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/views/SharingTab.vue | 4 |
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), } }, |