Skip to content

Commit 9b87e55

Browse files
feat: register help button in the header
Calls frontend-base's helpButtonSlotOperation to surface a Help link in the header for instructor-dashboard routes, gated on the instructor-dashboard role. The URL comes from getAppConfig().SUPPORT_URL, which the backend resolves via MFE_CONFIG / MFE_CONFIG_OVERRIDES or the help-tokens legacy fallback. Refs openedx/frontend-base#245 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8532409 commit 9b87e55

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/slots.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
import { SlotOperation } from '@openedx/frontend-base';
1+
import { helpButtonSlotOperation, SlotOperation } from '@openedx/frontend-base';
22

3-
const slots: SlotOperation[] = [];
3+
import { appId, instructorDashboardRole } from './constants';
4+
5+
const slots: SlotOperation[] = [
6+
helpButtonSlotOperation({ appId, role: instructorDashboardRole }),
7+
];
48

59
export default slots;

0 commit comments

Comments
 (0)