Moved the Learning Dashboard button to the bottom of the list and added top divider to it
This commit is contained in:
parent
7f63a7865b
commit
2fd32f1172
@ -284,17 +284,6 @@ class UserOptions extends PureComponent {
|
||||
onClick: this.onSaveUserNames,
|
||||
icon: 'download',
|
||||
});
|
||||
|
||||
if (learningDashboardAccessToken != null) {
|
||||
this.menuItems.push({
|
||||
icon: 'multi_whiteboard',
|
||||
iconRight: 'popout_window',
|
||||
label: intl.formatMessage(intlMessages.learningDashboardLabel),
|
||||
description: intl.formatMessage(intlMessages.learningDashboardDesc),
|
||||
key: this.learningDashboardId,
|
||||
onClick: () => { openLearningDashboardUrl(locale); },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
this.menuItems.push({
|
||||
@ -336,6 +325,19 @@ class UserOptions extends PureComponent {
|
||||
dataTest: 'inviteBreakoutRooms',
|
||||
});
|
||||
}
|
||||
if (amIModerator) {
|
||||
if (learningDashboardAccessToken != null) {
|
||||
this.menuItems.push({
|
||||
icon: 'multi_whiteboard',
|
||||
iconRight: 'popout_window',
|
||||
label: intl.formatMessage(intlMessages.learningDashboardLabel),
|
||||
description: intl.formatMessage(intlMessages.learningDashboardDesc),
|
||||
key: this.learningDashboardId,
|
||||
onClick: () => { openLearningDashboardUrl(locale); },
|
||||
dividerTop: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return this.menuItems;
|
||||
|
Loading…
Reference in New Issue
Block a user