Skip to content

Commit

Permalink
Show installer beta versions when there is one
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Apr 11, 2024
1 parent 7186ade commit 15091ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/src/lib/Installer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
import DownloadIcon from "./DownloadIcon.svelte";
const win32 = navigator.platform == "Win32"
const showVersionSelection = false;
let showVersionSelection = false;
let expertOptions = false;
let selectedVersion = "";
let versions = getDownloads();
async function getDownloads() {
const downloads = await getInstallerVersions();
selectedVersion = downloads.find(v => v.stable)?.url ?? "";
showVersionSelection = downloads[0].stable == false;
return downloads;
}
Expand Down Expand Up @@ -45,7 +46,7 @@
{#if latest?.stable}Installer Version: {latest.version} (Latest){/if}
{#if !expertOptions}
<a href={'#'} on:click|preventDefault={showExpertOptions}>
Show other versions
Show beta versions
</a>
{/if}
</p>
Expand Down

0 comments on commit 15091ba

Please sign in to comment.