mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Should not check updates in cloud mode. Minor updates.
This commit is contained in:
parent
8062d7f698
commit
56ab099499
4 changed files with 10 additions and 9 deletions
|
|
@ -13,7 +13,11 @@ export function UpdateNotice({ user, config }) {
|
|||
const { pathname } = useRouter();
|
||||
const [dismissed, setDismissed] = useState(checked);
|
||||
const allowUpdate =
|
||||
user?.isAdmin && !config?.updatesDisabled && !pathname.includes('/share/') && !dismissed;
|
||||
user?.isAdmin &&
|
||||
!config?.updatesDisabled &&
|
||||
!config?.cloudMode &&
|
||||
!pathname.includes('/share/') &&
|
||||
!dismissed;
|
||||
|
||||
const updateCheck = useCallback(() => {
|
||||
setItem(VERSION_CHECK, { version: latest, time: Date.now() });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue