Moved the Learning Dashboard button to the bottom of the list and added top divider to it

This commit is contained in:
Bohdan Zhemelinskyi 2021-09-14 20:27:13 +00:00
parent 7f63a7865b
commit 2fd32f1172

View File

@ -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;