moderator-toolbox-nxg-for-reddit / modules/proposals/dom

modules/proposals/dom

Functions

createProposalsInlineBadgeSlot()

createProposalsInlineBadgeSlot(): () => void

Defined in: extension/data/modules/proposals/dom.tsx:27

Registers the per-thing inline “proposal pending” badge and returns its cleanup function. Renders nothing for items without open proposals.

Returns

() => void


createProposalsModbarSlot()

createProposalsModbarSlot(): () => void

Defined in: extension/data/modules/proposals/dom.tsx:15

Registers the Proposals modbar button and returns its cleanup function. Pass the return value to lifecycle.mount() in index.ts. Renders into the modbar’s counter group (immediately left of the modmail icon) so it reads as one of the mod queue counters rather than a labelled button.

Returns

() => void


createProposalsSecondOpinionSlot()

createProposalsSecondOpinionSlot(): () => void

Defined in: extension/data/modules/proposals/dom.tsx:57

Registers the per-thing inline “second opinion” toggle and returns its cleanup function. Renders nothing for already-removed items, non-moderators, or items that already have an open proposal (the inline badge covers that case).

Returns

() => void


createTrainingModeIndicatorSlot()

createTrainingModeIndicatorSlot(): () => void

Defined in: extension/data/modules/proposals/dom.tsx:44

Registers the modbar “Training mode” indicator and returns its cleanup function. Renders into the right-hand counter group, immediately left of the proposals icon (which registers at order 0); shows only for trainees on a subreddit page they’re sandboxed in.

Returns

() => void