]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add data-active-section-type attribute to app-content settings section
authorThomas Citharel <tcit@tcit.fr>
Fri, 5 Jan 2024 08:45:50 +0000 (09:45 +0100)
committerThomas Citharel <tcit@tcit.fr>
Fri, 5 Jan 2024 08:58:46 +0000 (09:58 +0100)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
apps/settings/lib/Controller/CommonSettingsTrait.php
apps/settings/templates/settings/frame.php

index 8ca62b9d1b3a6295bfdea7e75ebc5dd592924939..5d683d7d824c3e13da8570e6b246fec066c04fbf 100644 (file)
@@ -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);
index b0889746173ec99e7885197137b8ccb9bf6342b2..fac4753eeafc6ab859536ab98dd0c8c63d851bcf 100644 (file)
@@ -84,6 +84,6 @@ script('files', 'jquery.fileupload');
                </ul>
        </nav>
 </div>
-<div id="app-content" data-active-section-id="<?php print_unescaped($_['activeSectionId']) ?>">
+<div id="app-content" data-active-section-id="<?php print_unescaped($_['activeSectionId']) ?>" data-active-section-type="<?php print_unescaped($_['activeSectionType']) ?>">
        <?php print_unescaped($_['content']); ?>
 </div>