mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Add links to realtime logs.
This commit is contained in:
parent
e0c2354169
commit
b1a0d21a49
@ -101,6 +101,7 @@ export default function RealtimeLog({ data, websites }) {
|
||||
os,
|
||||
country,
|
||||
device,
|
||||
website_id,
|
||||
}) {
|
||||
if (event_type) {
|
||||
return (
|
||||
@ -110,7 +111,17 @@ export default function RealtimeLog({ data, websites }) {
|
||||
);
|
||||
}
|
||||
if (view_id) {
|
||||
return url;
|
||||
const domain = getWebsite({ website_id });
|
||||
return (
|
||||
<a
|
||||
className={styles.link}
|
||||
href={`//${domain}${url}`}
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
>
|
||||
{url}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
if (session_id) {
|
||||
return (
|
||||
|
@ -44,3 +44,12 @@
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.row .link {
|
||||
color: var(--gray900);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.row .link:hover {
|
||||
color: var(--primary400);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user