ui: fix sidemenu check
This commit is contained in:
parent
ba745ed2c9
commit
5b46f673c3
2 changed files with 2 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ export const enum MODULES {
|
|||
ASSIST = 'assist',
|
||||
NOTES = 'notes',
|
||||
BUG_REPORTS = 'bug-reports',
|
||||
OFFLINE_RECORDINGS = 'offline-recordings',
|
||||
OFFLINE_RECORDINGS = 'offline-recordings',
|
||||
ALERTS = 'alerts',
|
||||
ASSIST_STATS = 'assist-stats',
|
||||
FEATURE_FLAGS = 'feature-flags',
|
||||
|
|
|
|||
|
|
@ -116,8 +116,7 @@ function SideMenu(props: Props) {
|
|||
modules.includes(MODULES.FEATURE_FLAGS),
|
||||
item.key === MENU.NOTES && modules.includes(MODULES.NOTES),
|
||||
item.key === MENU.LIVE_SESSIONS && (modules.includes(MODULES.ASSIST) || isMobile),
|
||||
item.key === MENU.SESSIONS &&
|
||||
modules.includes(MODULES.OFFLINE_RECORDINGS),
|
||||
item.key === MENU.SESSIONS,
|
||||
item.key === MENU.ALERTS && modules.includes(MODULES.ALERTS),
|
||||
item.key === MENU.USABILITY_TESTS && modules.includes(MODULES.USABILITY_TESTS),
|
||||
item.isAdmin && !isAdmin,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue