mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Updated page titles.
This commit is contained in:
parent
39f630400f
commit
a7e6c32460
10 changed files with 18 additions and 22 deletions
|
|
@ -9,8 +9,10 @@ export default function RealtimeDetailsPage() {
|
|||
const { id: websiteId } = router.query;
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { get, useQuery } = useApi();
|
||||
const { data: website } = useQuery(['websites', websiteId], () => get(`/websites/${websiteId}`));
|
||||
const title = formatMessage(labels.realtime) + ' | ' + website?.name;
|
||||
const { data: website } = useQuery(['websites', websiteId], () =>
|
||||
get(`/websites/${websiteId}`, { enabled: !!websiteId }),
|
||||
);
|
||||
const title = `${formatMessage(labels.realtime)}${website?.name ? ` - ${website.name}` : ''}`;
|
||||
|
||||
if (!websiteId) {
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue