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 }) {
|
export default function WebsiteHeader({ websiteId, title, domain, showLink = false }) {
|
||||||
const header = showLink ? (
|
const header = showLink ? (
|
||||||
<Link href="/website/[...id]" as={`/website/${websiteId}/${title}`}>
|
<>
|
||||||
<Favicon domain={domain} />
|
<Favicon domain={domain} />
|
||||||
|
<Link href="/website/[...id]" as={`/website/${websiteId}/${title}`}>
|
||||||
{title}
|
{title}
|
||||||
</Link>
|
</Link>
|
||||||
|
</>
|
||||||
) : (
|
) : (
|
||||||
<div>
|
<div>
|
||||||
<Favicon domain={domain} />
|
<Favicon domain={domain} />
|
||||||
|
@ -29,8 +29,7 @@ export default function AccountSettings() {
|
|||||||
|
|
||||||
const Checkmark = ({ is_admin }) => (is_admin ? <Icon icon={<Check />} size="medium" /> : null);
|
const Checkmark = ({ is_admin }) => (is_admin ? <Icon icon={<Check />} size="medium" /> : null);
|
||||||
|
|
||||||
const DashboardLink = row =>
|
const DashboardLink = row => (
|
||||||
row.is_admin ? null : (
|
|
||||||
<Link href={`/dashboard/${row.user_id}/${row.username}`}>
|
<Link href={`/dashboard/${row.user_id}/${row.username}`}>
|
||||||
<a>
|
<a>
|
||||||
<Icon icon={<LinkIcon />} />
|
<Icon icon={<LinkIcon />} />
|
||||||
|
Loading…
Reference in New Issue
Block a user