mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 02:55:38 +01:00
Refactored forms and pages.
This commit is contained in:
parent
1325abe31d
commit
6253d55790
57 changed files with 209 additions and 208 deletions
|
|
@ -7,8 +7,8 @@ export function WebsitesTable({
|
|||
data = [],
|
||||
showTeam,
|
||||
showActions,
|
||||
showEditButton,
|
||||
showViewButton,
|
||||
allowEdit,
|
||||
allowView,
|
||||
children,
|
||||
}) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
|
|
@ -37,7 +37,7 @@ export function WebsitesTable({
|
|||
|
||||
return (
|
||||
<>
|
||||
{showActions && showEditButton && (!showTeam || ownerId === user.id) && (
|
||||
{showActions && allowEdit && (!showTeam || ownerId === user.id) && (
|
||||
<Link href={`/settings/websites/${id}`}>
|
||||
<Button>
|
||||
<Icon>
|
||||
|
|
@ -47,7 +47,7 @@ export function WebsitesTable({
|
|||
</Button>
|
||||
</Link>
|
||||
)}
|
||||
{showActions && showViewButton && (
|
||||
{showActions && allowView && (
|
||||
<Link href={`/websites/${id}`}>
|
||||
<Button>
|
||||
<Icon>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue