diff --git a/src/components/saves/SavesManager.vue b/src/components/saves/SavesManager.vue index 8e9afdf..ceeae6f 100644 --- a/src/components/saves/SavesManager.vue +++ b/src/components/saves/SavesManager.vue @@ -4,6 +4,9 @@ <h2>Saves Manager</h2> </template> <template #body="{ shown }"> + <div v-if="showNotSyncedWarning" style="color: var(--danger)"> + Not all saves are synced! You may need to delete stale saves. + </div> <Draggable :list="settings.saves" handle=".handle" @@ -79,6 +82,7 @@ import Draggable from "vuedraggable"; import Select from "../fields/Select.vue"; import Text from "../fields/Text.vue"; import Save from "./Save.vue"; +import { galaxy, syncedSaves } from "util/galaxy"; export type LoadablePlayerData = Omit<Partial<Player>, "id"> & { id: string; error?: unknown }; @@ -154,6 +158,10 @@ const saves = computed(() => }, {}) ); +const showNotSyncedWarning = computed( + () => galaxy.value?.loggedIn && settings.saves.length < syncedSaves.value.length +); + function exportSave(id: string) { let saveToExport; if (player.id === id) {