Compare commits
1 Commits
dependabot
...
inf-663
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f734afbee |
@@ -134,6 +134,7 @@ export const TopicOrdering = {
|
|||||||
export const LearnersOrdering = {
|
export const LearnersOrdering = {
|
||||||
BY_FLAG: 'flagged',
|
BY_FLAG: 'flagged',
|
||||||
BY_LAST_ACTIVITY: 'activity',
|
BY_LAST_ACTIVITY: 'activity',
|
||||||
|
BY_RECENCY: 'recency',
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -103,6 +103,12 @@ function LearnerFilterBar({
|
|||||||
selected={currentSorting}
|
selected={currentSorting}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
<ActionItem
|
||||||
|
id="sort-recency"
|
||||||
|
label={intl.formatMessage(messages.recentActivity)}
|
||||||
|
value={LearnersOrdering.BY_RECENCY}
|
||||||
|
selected={currentSorting}
|
||||||
|
/>
|
||||||
</Form.RadioSet>
|
</Form.RadioSet>
|
||||||
</div>
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
|
|||||||
@@ -38,6 +38,11 @@ const messages = defineMessages({
|
|||||||
defaultMessage: 'Reported activity',
|
defaultMessage: 'Reported activity',
|
||||||
description: 'Text for learners sorting by reported activity',
|
description: 'Text for learners sorting by reported activity',
|
||||||
},
|
},
|
||||||
|
recentActivity: {
|
||||||
|
id: 'discussions.learner.recentActivity',
|
||||||
|
defaultMessage: 'Recent activity',
|
||||||
|
description: 'Text for learners sorting by recent activity',
|
||||||
|
},
|
||||||
sortFilterStatus: {
|
sortFilterStatus: {
|
||||||
id: 'discussions.learner.sortFilterStatus',
|
id: 'discussions.learner.sortFilterStatus',
|
||||||
defaultMessage: `All learners by {sort, select,
|
defaultMessage: `All learners by {sort, select,
|
||||||
|
|||||||
Reference in New Issue
Block a user