From fe796c01bb5e709cb8a818ad7e691d75c9327346 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 4 Jun 2024 01:28:22 +0200 Subject: [PATCH] fix(files): Adjust files list for sharing permissions on public shares Signed-off-by: Ferdinand Thiessen --- apps/files/src/FilesApp.vue | 12 ++++++++++-- apps/files/src/views/FilesList.vue | 16 ++++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/apps/files/src/FilesApp.vue b/apps/files/src/FilesApp.vue index 73a14a157b4c9..3f8ebbd1ecc34 100644 --- a/apps/files/src/FilesApp.vue +++ b/apps/files/src/FilesApp.vue @@ -4,8 +4,8 @@ --> @@ -16,6 +16,7 @@ import NcContent from '@nextcloud/vue/dist/Components/NcContent.js' import Navigation from './views/Navigation.vue' import FilesList from './views/FilesList.vue' +import { loadState } from '@nextcloud/initial-state' export default defineComponent({ name: 'FilesApp', @@ -25,5 +26,12 @@ export default defineComponent({ FilesList, Navigation, }, + + setup() { + const isPublic = loadState('files_sharing', 'isPublic', false) + return { + isPublic, + } + }, }) diff --git a/apps/files/src/views/FilesList.vue b/apps/files/src/views/FilesList.vue index 24797d89c3298..c9e815c4c5cdd 100644 --- a/apps/files/src/views/FilesList.vue +++ b/apps/files/src/views/FilesList.vue @@ -4,7 +4,7 @@ -->