mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-25 17:51:11 +01:00
Add version info.
This commit is contained in:
parent
3b6c6846b1
commit
98028f1756
@ -5,6 +5,7 @@ import NavBar from 'components/layout/NavBar';
|
|||||||
import UpdateNotice from 'components/common/UpdateNotice';
|
import UpdateNotice from 'components/common/UpdateNotice';
|
||||||
import useRequireLogin from 'hooks/useRequireLogin';
|
import useRequireLogin from 'hooks/useRequireLogin';
|
||||||
import useConfig from 'hooks/useConfig';
|
import useConfig from 'hooks/useConfig';
|
||||||
|
import { CURRENT_VERSION } from 'lib/constants';
|
||||||
import styles from './AppLayout.module.css';
|
import styles from './AppLayout.module.css';
|
||||||
|
|
||||||
export default function AppLayout({ title, children }) {
|
export default function AppLayout({ title, children }) {
|
||||||
@ -19,7 +20,7 @@ export default function AppLayout({ title, children }) {
|
|||||||
const allowUpdate = user?.isAdmin && !config?.updatesDisabled && !pathname.includes('/share/');
|
const allowUpdate = user?.isAdmin && !config?.updatesDisabled && !pathname.includes('/share/');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.layout}>
|
<div className={styles.layout} data-app-version={CURRENT_VERSION}>
|
||||||
{allowUpdate && <UpdateNotice />}
|
{allowUpdate && <UpdateNotice />}
|
||||||
<Head>
|
<Head>
|
||||||
<title>{title ? `${title} | umami` : 'umami'}</title>
|
<title>{title ? `${title} | umami` : 'umami'}</title>
|
||||||
|
Loading…
Reference in New Issue
Block a user