mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Show dashboard for multiple admins.
This commit is contained in:
parent
b1d8a58e22
commit
88452ad71e
@ -11,10 +11,12 @@ import styles from './WebsiteHeader.module.css';
|
||||
|
||||
export default function WebsiteHeader({ websiteId, title, domain, showLink = false }) {
|
||||
const header = showLink ? (
|
||||
<Link href="/website/[...id]" as={`/website/${websiteId}/${title}`}>
|
||||
<>
|
||||
<Favicon domain={domain} />
|
||||
{title}
|
||||
</Link>
|
||||
<Link href="/website/[...id]" as={`/website/${websiteId}/${title}`}>
|
||||
{title}
|
||||
</Link>
|
||||
</>
|
||||
) : (
|
||||
<div>
|
||||
<Favicon domain={domain} />
|
||||
|
@ -29,14 +29,13 @@ export default function AccountSettings() {
|
||||
|
||||
const Checkmark = ({ is_admin }) => (is_admin ? <Icon icon={<Check />} size="medium" /> : null);
|
||||
|
||||
const DashboardLink = row =>
|
||||
row.is_admin ? null : (
|
||||
<Link href={`/dashboard/${row.user_id}/${row.username}`}>
|
||||
<a>
|
||||
<Icon icon={<LinkIcon />} />
|
||||
</a>
|
||||
</Link>
|
||||
);
|
||||
const DashboardLink = row => (
|
||||
<Link href={`/dashboard/${row.user_id}/${row.username}`}>
|
||||
<a>
|
||||
<Icon icon={<LinkIcon />} />
|
||||
</a>
|
||||
</Link>
|
||||
);
|
||||
|
||||
const Buttons = row =>
|
||||
row.username !== 'admin' ? (
|
||||
|
Loading…
Reference in New Issue
Block a user