Plugin Directory


Ignore:
Timestamp:
11/06/2026 07:44:19 AM (3 days ago)
Author:
mantrabrain
Message:

Update to version 1.0.17 from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sikshya/trunk/src/Admin/ReactAdminConfig.php

    r3777551 r3787392  
    260260        ];
    261261
    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');
    271277
    272278        $course_children[] = self::withNavGate([
Note: See TracChangeset for help on using the changeset viewer.