From 153a15ed2b64c6872532d0e8cc5d168c7495f7db Mon Sep 17 00:00:00 2001 From: Lukas Hirt Date: Tue, 24 Oct 2023 12:50:12 +0200 Subject: [PATCH] feat: show only folder create action in embed mode --- .../enhancement-embed-folder-creation | 7 ++ .../src/views/spaces/GenericSpace.vue | 31 +++++++- .../unit/views/spaces/GenericSpace.spec.ts | 70 +++++++++++++++++-- 3 files changed, 102 insertions(+), 6 deletions(-) create mode 100644 changelog/unreleased/enhancement-embed-folder-creation diff --git a/changelog/unreleased/enhancement-embed-folder-creation b/changelog/unreleased/enhancement-embed-folder-creation new file mode 100644 index 00000000000..31ebc53b037 --- /dev/null +++ b/changelog/unreleased/enhancement-embed-folder-creation @@ -0,0 +1,7 @@ +Enhancement: Show only create folder button in embed mode + +We've changed the actions in the AppBar in Files app to show only create folder button instead of create and upload actions. +In embed mode, it is possible to only create a new folder so it does not make sense to hide this action inside of a dropdown. + +https://github.com/owncloud/web/pull/9853 +https://github.com/owncloud/web/issues/9768 diff --git a/packages/web-app-files/src/views/spaces/GenericSpace.vue b/packages/web-app-files/src/views/spaces/GenericSpace.vue index 57505e3344d..8332e5b8fbb 100644 --- a/packages/web-app-files/src/views/spaces/GenericSpace.vue +++ b/packages/web-app-files/src/views/spaces/GenericSpace.vue @@ -15,7 +15,25 @@ @item-dropped="fileDropped" >