From 7f3e1229003a16c66f30f0d5df66566c41eff977 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 3 Apr 2026 21:12:35 +0200 Subject: [PATCH] refactor(files): modernize transfer ownership settings - related to https://github.com/nextcloud/server/issues/57008 Modernize the personal files settings for ownership transfer. - Use the new `NcForm*` components. - Use `NcSettingsSection` as root component - Migrate to Typescript - Migrate to script-setup Signed-off-by: Ferdinand Thiessen --- .../files/src/components/PersonalSettings.vue | 22 +- .../components/TransferOwnershipDialogue.vue | 408 ++++++++---------- apps/files_sharing/lib/Capabilities.php | 2 + 3 files changed, 197 insertions(+), 235 deletions(-) diff --git a/apps/files/src/components/PersonalSettings.vue b/apps/files/src/components/PersonalSettings.vue index b076b0c1e3df8..0a5043686359f 100644 --- a/apps/files/src/components/PersonalSettings.vue +++ b/apps/files/src/components/PersonalSettings.vue @@ -3,20 +3,14 @@ - SPDX-License-Identifier: AGPL-3.0-or-later --> + + - - diff --git a/apps/files/src/components/TransferOwnershipDialogue.vue b/apps/files/src/components/TransferOwnershipDialogue.vue index f915c44373c55..c474187c38b76 100644 --- a/apps/files/src/components/TransferOwnershipDialogue.vue +++ b/apps/files/src/components/TransferOwnershipDialogue.vue @@ -3,245 +3,211 @@ - SPDX-License-Identifier: AGPL-3.0-or-later --> - - - - diff --git a/apps/files_sharing/lib/Capabilities.php b/apps/files_sharing/lib/Capabilities.php index 7b911cb74ddaf..ca29820430737 100644 --- a/apps/files_sharing/lib/Capabilities.php +++ b/apps/files_sharing/lib/Capabilities.php @@ -90,6 +90,7 @@ public function __construct( * }, * }, * sharee: array{ + * minSearchStringLength: int, * query_lookup_default: bool, * always_show_unique: bool, * }, @@ -185,6 +186,7 @@ public function getCapabilities() { // Sharee searches $res['sharee'] = [ + 'minSearchStringLength' => $this->config->getSystemValueInt('sharing.minSearchStringLength', 0), 'query_lookup_default' => $this->config->getSystemValueBool('gs.enabled', false), 'always_show_unique' => $this->config->getAppValue('files_sharing', 'always_show_unique', 'yes') === 'yes', ];