From: Thomas Citharel Date: Fri, 5 Jan 2024 08:45:50 +0000 (+0100) Subject: Add data-active-section-type attribute to app-content settings section X-Git-Tag: v29.0.0beta1~530^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c75fbf8a83e567e6a1789bab35e7bc6f7eabaeaf;p=nextcloud-server.git Add data-active-section-type attribute to app-content settings section Signed-off-by: Thomas Citharel --- diff --git a/apps/settings/lib/Controller/CommonSettingsTrait.php b/apps/settings/lib/Controller/CommonSettingsTrait.php index 8ca62b9d1b3..5d683d7d824 100644 --- a/apps/settings/lib/Controller/CommonSettingsTrait.php +++ b/apps/settings/lib/Controller/CommonSettingsTrait.php @@ -151,6 +151,7 @@ trait CommonSettingsTrait { if ($activeSection) { $templateParams['pageTitle'] = $activeSection->getName(); $templateParams['activeSectionId'] = $activeSection->getID(); + $templateParams['activeSectionType'] = $type; } return new TemplateResponse('settings', 'settings/frame', $templateParams); diff --git a/apps/settings/templates/settings/frame.php b/apps/settings/templates/settings/frame.php index b0889746173..fac4753eeaf 100644 --- a/apps/settings/templates/settings/frame.php +++ b/apps/settings/templates/settings/frame.php @@ -84,6 +84,6 @@ script('files', 'jquery.fileupload'); -
+