refactor(web): update os check includeNext defaults

This commit is contained in:
Zack Spear
2023-09-28 17:14:03 -07:00
committed by Zack Spear
parent f4ab363901
commit eae6d75bca
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -23,9 +23,9 @@ const serverStore = useServerStore();
const updateOsStore = useUpdateOsStore();
const { guid, keyfile, osVersion } = storeToRefs(serverStore);
const { parsedReleaseTimestamp } = storeToRefs(updateOsStore);
const { isOsVersionStable, parsedReleaseTimestamp } = storeToRefs(updateOsStore);
const includeNext = ref(false);
const includeNext = ref(isOsVersionStable.value ?? false);
const status = ref<'ready' | 'checking' | 'ineligible'>('ready');
+1 -1
View File
@@ -102,7 +102,7 @@ onBeforeMount(() => {
updateOsStore.checkForUpdate({
cache: true,
guid: guid.value,
includeNext: isOsVersionStable.value, // @todo ensure this is correct
includeNext: !isOsVersionStable.value, // if we're already on a non-stable release, include next
keyfile: keyfile.value,
osVersion: osVersion.value,
});