diff --git a/src/components/Nav.vue b/src/components/Nav.vue index 641dfee..e7a5a04 100644 --- a/src/components/Nav.vue +++ b/src/components/Nav.vue @@ -36,7 +36,7 @@
- library_books + library_books
@@ -53,7 +53,7 @@
- library_books + library_books
@@ -98,9 +98,11 @@ import Changelog from "data/Changelog.vue"; import projInfo from "data/projInfo.json"; import Tooltip from "features/tooltips/Tooltip.vue"; +import settings from "game/settings"; import { Direction } from "util/common"; +import { galaxy, syncedSaves } from "util/galaxy"; import type { ComponentPublicInstance } from "vue"; -import { ref } from "vue"; +import { computed, ref } from "vue"; import Info from "./Info.vue"; import Options from "./Options.vue"; import SavesManager from "./saves/SavesManager.vue"; @@ -117,6 +119,10 @@ const { useHeader, banner, title, discordName, discordLink, versionNumber } = pr function openDiscord() { window.open(discordLink, "mywindow"); } + +const needsSync = computed( + () => galaxy.value?.loggedIn && !syncedSaves.value.includes(settings.active) +);