mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
Updated edit permissions on settings components.
This commit is contained in:
parent
ffc8f6faae
commit
7effa16f00
15 changed files with 128 additions and 148 deletions
|
|
@ -43,7 +43,7 @@ export function SettingsLayout({ children }: { children: ReactNode }) {
|
|||
|
||||
const selectedKey = items
|
||||
.flatMap(e => e.items)
|
||||
.find(({ path }) => path && pathname.endsWith(path.split('?')[0]))?.id;
|
||||
.find(({ path }) => path && pathname.includes(path.split('?')[0]))?.id;
|
||||
|
||||
return (
|
||||
<Grid columns="auto 1fr" width="100%" height="100%">
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export function TeamsSettingsPage() {
|
|||
<Column gap="6">
|
||||
<TeamsHeader />
|
||||
<Panel>
|
||||
<TeamsDataTable showActions={true} />
|
||||
<TeamsDataTable />
|
||||
</Panel>
|
||||
</Column>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -3,16 +3,13 @@ import { Column } from '@umami/react-zen';
|
|||
import { WebsiteProvider } from '@/app/(main)/websites/WebsiteProvider';
|
||||
import { WebsiteSettings } from '@/app/(main)/websites/[websiteId]/settings/WebsiteSettings';
|
||||
import { WebsiteSettingsHeader } from '@/app/(main)/websites/[websiteId]/settings/WebsiteSettingsHeader';
|
||||
import { Panel } from '@/components/common/Panel';
|
||||
|
||||
export function WebsiteSettingsPage({ websiteId }: { websiteId: string }) {
|
||||
return (
|
||||
<WebsiteProvider websiteId={websiteId}>
|
||||
<Column gap="6" margin="2">
|
||||
<WebsiteSettingsHeader />
|
||||
<Panel>
|
||||
<WebsiteSettings websiteId={websiteId} />
|
||||
</Panel>
|
||||
<WebsiteSettings websiteId={websiteId} />
|
||||
</Column>
|
||||
</WebsiteProvider>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue