Skip to content

Commit

Permalink
fix(app): display refresh schedule if not full meeting editor role
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Sep 25, 2023
1 parent 4379c78 commit f5a7334
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/DashboardMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const DashboardMenu = () => {
secretaryRole ||
coordinatorRole ||
publicTalkCoordinatorRole;
const fullMeetingEditor = lmmoRole && publicTalkCoordinatorRole && coordinatorRole;

const handleOpenMyAssignment = useCallback(() => {
setWhatsNewOpen(false);
Expand Down Expand Up @@ -233,7 +234,7 @@ const DashboardMenu = () => {
{
title: t('refreshSchedule'),
icon: <CloudSyncIcon />,
visible: isCongAccountConnected && !lmmoRole && !coordinatorRole && !publicTalkCoordinatorRole,
visible: isCongAccountConnected && !fullMeetingEditor,
action: apiFetchSchedule,
},
],
Expand Down Expand Up @@ -380,6 +381,7 @@ const DashboardMenu = () => {
elderRole,
publicTalkCoordinatorRole,
coordinatorRole,
fullMeetingEditor,
]);

return (
Expand Down

0 comments on commit f5a7334

Please sign in to comment.