mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Show dashboard for multiple admins.
This commit is contained in:
parent
b1d8a58e22
commit
88452ad71e
2 changed files with 12 additions and 11 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue