Skip to content

Commit

Permalink
fix: hide queue actions when queue is in readOnlyMode
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Jan 27, 2022
1 parent 7688f27 commit 0b51e67
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/ui/src/components/StatusMenu/StatusMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ export const StatusMenu = ({ queue, actions }: { queue: AppQueue; actions: Store
</NavLink>
);
})}
<div>
<QueueDropdownActions queue={queue} actions={actions} />
</div>
{!queue.readOnlyMode && (
<div>
<QueueDropdownActions queue={queue} actions={actions} />
</div>
)}
</div>
);
};

0 comments on commit 0b51e67

Please sign in to comment.