Hide edit button cloudMode.

This commit is contained in:
Brian Cao 2023-08-17 21:25:12 -07:00
parent 530fc5dcd1
commit d3e175a31d
3 changed files with 21 additions and 4 deletions

View file

@ -13,6 +13,7 @@ export function WebsitesTable({
onPageChange,
onPageSizeChange,
showTeam,
showEditButton,
}) {
const { formatMessage, labels, messages } = useMessages();
const { openExternal } = useConfig();
@ -58,7 +59,7 @@ export function WebsitesTable({
return (
<>
{(!showTeam || ownerId === user.id) && (
{showEditButton && (!showTeam || ownerId === user.id) && (
<Link href={`/settings/websites/${id}`}>
<Button>
<Icon>