Changeset 3787392 for sikshya/trunk/src/Admin/ReactAdminConfig.php
- Timestamp:
- 11/06/2026 07:44:19 AM (3 days ago)
- File:
-
- 1 edited
-
sikshya/trunk/src/Admin/ReactAdminConfig.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sikshya/trunk/src/Admin/ReactAdminConfig.php
r3777551 r3787392 260 260 ]; 261 261 262 if (TierCapabilities::feature('community_discussions') && Addons::isEnabled('community_discussions')) { 263 $course_children[] = [ 264 'id' => 'discussions', 265 'label' => __('Discussions & Q&A', 'sikshya'), 266 'icon' => 'chatBubbles', 267 'href' => self::reactAppUrl('discussions'), 268 'cap' => 'sikshya_staff', 269 ]; 270 } 262 /* 263 * Badged like every other add-on entry rather than hidden outright. 264 * Hiding it meant a site that *had* paid for Discussions saw no trace 265 * of it anywhere in the menu and no route to switch it on — the one 266 * nav row of thirteen that removed itself instead of saying "off". 267 * `DiscussionsPage` already renders an enable prompt when the add-on 268 * is off, so the destination has always been ready for this. 269 */ 270 $course_children[] = self::withNavGate([ 271 'id' => 'discussions', 272 'label' => __('Discussions & Q&A', 'sikshya'), 273 'icon' => 'chatBubbles', 274 'href' => self::reactAppUrl('discussions'), 275 'cap' => 'sikshya_staff', 276 ], 'community_discussions'); 271 277 272 278 $course_children[] = self::withNavGate([
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)