📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
don't do link for embedded
Blue Mouseb2a19cc0d4c6
diff --git a/web/app/pages/Project/View/components/CurrentTime.tsx b/web/app/pages/Project/View/components/CurrentTime.tsxindex a5fa58546..de046df9e 100644--- a/web/app/pages/Project/View/components/CurrentTime.tsx+++ b/web/app/pages/Project/View/components/CurrentTime.tsx@@ -3,6 +3,7 @@ import timezonePlugin from 'dayjs/plugin/timezone'import utc from 'dayjs/plugin/utc'import React, { memo } from 'react'import { Trans, useTranslation } from 'react-i18next'+import { useSearchParams } from 'react-router'import { DEFAULT_TIMEZONE } from '~/lib/constants'import { useAuth } from '~/providers/AuthProvider'@@ -17,6 +18,9 @@ const CurrentTime = () => {const { t } = useTranslation('common')const { timezone = DEFAULT_TIMEZONE, timeFormat } = useViewProjectContext()const { isAuthenticated } = useAuth()+ const [searchParams] = useSearchParams()++ const isEmbedded = searchParams.get('embedded') === 'true'return (<div className='mb-2 flex justify-end'>@@ -24,9 +28,11 @@ const CurrentTime = () => {text={<div className='flex flex-col'><span className='font-semibold'>{t('project.timezoneX', { timezone })}</span>- <span className='text-xs text-gray-300 dark:text-gray-400'>- {isAuthenticated ? t('project.changeInSettings') : t('project.signInToChange')}- </span>+ {isEmbedded ? null : (+ <span className='text-xs text-gray-300 dark:text-gray-400'>+ {isAuthenticated ? t('project.changeInSettings') : t('project.signInToChange')}+ </span>+ )}</div>}tooltipNode={@@ -40,7 +46,9 @@ const CurrentTime = () => {.format(timeFormat === '12-hour' ? 'h:mm a' : 'HH:mm'),}}components={{- url: (+ url: isEmbedded ? (+ <span className='border-b border-dashed border-gray-500' />+ ) : (<ahref={isAuthenticated ? '/user-settings' : '/login'}target='_blank'