summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2022-12-05 10:56:55 +0100
committerThomas Citharel <tcit@tcit.fr>2022-12-05 12:19:21 +0100
commit0cc50aff490a7a14ca56dcefb02f0eae53e2fd68 (patch)
tree87961ab8d5985b68b9f213dcb616e3c81d232898 /apps/settings/lib
parent944be7950a0199dbc48b99dac936987b13dd0383 (diff)
downloadnextcloud-server-0cc50aff490a7a14ca56dcefb02f0eae53e2fd68.tar.gz
nextcloud-server-0cc50aff490a7a14ca56dcefb02f0eae53e2fd68.zip
Add section-id and section-type data attributes to settings <li> navigation items
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r--apps/settings/lib/Controller/CommonSettingsTrait.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/CommonSettingsTrait.php b/apps/settings/lib/Controller/CommonSettingsTrait.php
index d5d004d8722..8ca62b9d1b3 100644
--- a/apps/settings/lib/Controller/CommonSettingsTrait.php
+++ b/apps/settings/lib/Controller/CommonSettingsTrait.php
@@ -150,6 +150,7 @@ trait CommonSettingsTrait {
$activeSection = $this->settingsManager->getSection($type, $section);
if ($activeSection) {
$templateParams['pageTitle'] = $activeSection->getName();
+ $templateParams['activeSectionId'] = $activeSection->getID();
}
return new TemplateResponse('settings', 'settings/frame', $templateParams);