diff options
author | Thomas Citharel <tcit@tcit.fr> | 2022-12-05 10:56:55 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2022-12-05 12:19:21 +0100 |
commit | 0cc50aff490a7a14ca56dcefb02f0eae53e2fd68 (patch) | |
tree | 87961ab8d5985b68b9f213dcb616e3c81d232898 /apps/settings/lib | |
parent | 944be7950a0199dbc48b99dac936987b13dd0383 (diff) | |
download | nextcloud-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.php | 1 |
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); |