FCLauncher/fclauncher/frontend/src/Modpacks.svelte

22 lines
558 B
Svelte
Raw Normal View History

2024-11-25 12:36:29 -07:00
<script lang="ts">
import {onMount} from 'svelte'
import {GetModpacks} from '../wailsjs/go/main/ModpackManager.js'
import { main } from '../wailsjs/go/models';
let modpacks: main.Modpack[] = []
let pack: main.Modpack
onMount(() => {
GetModpacks().then((result) => {
modpacks = result
})
})
</script>
<main>
<select id="pack" bind:value={pack} name="pack">Select a Modpack:
{#each modpacks as pack}
<option value={pack}>{pack.Name}</option>
{/each}
</select>
</main>