diff options
Diffstat (limited to 'ui/src/components')
| -rw-r--r-- | ui/src/components/BottomBar.svelte | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/src/components/BottomBar.svelte b/ui/src/components/BottomBar.svelte index dcad9e8..a96b086 100644 --- a/ui/src/components/BottomBar.svelte +++ b/ui/src/components/BottomBar.svelte @@ -65,10 +65,13 @@ > {#if gameState.versions.length === 0} <option>Loading...</option> + {:else if gameState.installedVersionIds.length === 0} + <option disabled>No installed versions</option> {:else} {#each gameState.versions as version} - <option value={version.id}>{version.id} ({version.type})</option - > + {#if gameState.installedVersionIds.includes(version.id)} + <option value={version.id}>{version.id} ({version.type})</option> + {/if} {/each} {/if} </select> |