mirror of
https://github.com/umami-software/umami.git
synced 2026-02-16 10:35:35 +01:00
Added config to open websites in new tab.
This commit is contained in:
parent
964ef1c92e
commit
d471d05217
2 changed files with 10 additions and 10 deletions
|
|
@ -13,9 +13,11 @@ import {
|
|||
Flexbox,
|
||||
} from 'react-basics';
|
||||
import useMessages from 'hooks/useMessages';
|
||||
import useConfig from 'hooks/useConfig';
|
||||
|
||||
export default function WebsitesTable({ data = [] }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { openExternal } = useConfig();
|
||||
|
||||
const columns = [
|
||||
{ name: 'name', label: formatMessage(labels.name), style: { flex: 2 } },
|
||||
|
|
@ -48,7 +50,7 @@ export default function WebsitesTable({ data = [] }) {
|
|||
<Text>{formatMessage(labels.edit)}</Text>
|
||||
</Button>
|
||||
</Link>
|
||||
<Link href={`/websites/${id}`}>
|
||||
<Link href={`/websites/${id}`} target={openExternal ? '_blank' : null}>
|
||||
<Button>
|
||||
<Icon>
|
||||
<Icons.External />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue