mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Updated version checking.
This commit is contained in:
parent
1bfb26ab44
commit
c8ca0a0a56
7 changed files with 38 additions and 42 deletions
|
|
@ -17,9 +17,11 @@ export default function Header() {
|
|||
const { user } = useUser();
|
||||
const { pathname } = useRouter();
|
||||
|
||||
console.log('wat', process.env.updatesDisabled);
|
||||
|
||||
return (
|
||||
<>
|
||||
{user?.is_admin && <UpdateNotice />}
|
||||
{user?.is_admin && !process.env.updatesDisabled && <UpdateNotice />}
|
||||
<header className={classNames(styles.header, 'row')}>
|
||||
<div className={styles.title}>
|
||||
<Icon icon={<Logo />} size="large" className={styles.logo} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue