From f5a73349ad2d9f8fa7f18515307d8374d19d578a Mon Sep 17 00:00:00 2001 From: rhahao <26148770+rhahao@users.noreply.github.com> Date: Mon, 25 Sep 2023 20:36:48 +0300 Subject: [PATCH] fix(app): display refresh schedule if not full meeting editor role --- src/pages/DashboardMenu.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/DashboardMenu.jsx b/src/pages/DashboardMenu.jsx index 68dd01cd4c..9c5a9b9593 100644 --- a/src/pages/DashboardMenu.jsx +++ b/src/pages/DashboardMenu.jsx @@ -99,6 +99,7 @@ const DashboardMenu = () => { secretaryRole || coordinatorRole || publicTalkCoordinatorRole; + const fullMeetingEditor = lmmoRole && publicTalkCoordinatorRole && coordinatorRole; const handleOpenMyAssignment = useCallback(() => { setWhatsNewOpen(false); @@ -233,7 +234,7 @@ const DashboardMenu = () => { { title: t('refreshSchedule'), icon: , - visible: isCongAccountConnected && !lmmoRole && !coordinatorRole && !publicTalkCoordinatorRole, + visible: isCongAccountConnected && !fullMeetingEditor, action: apiFetchSchedule, }, ], @@ -380,6 +381,7 @@ const DashboardMenu = () => { elderRole, publicTalkCoordinatorRole, coordinatorRole, + fullMeetingEditor, ]); return (