diff --git a/fclauncher/frontend/src/App.svelte b/fclauncher/frontend/src/App.svelte index dc4b0a0..aac6c06 100644 --- a/fclauncher/frontend/src/App.svelte +++ b/fclauncher/frontend/src/App.svelte @@ -4,10 +4,10 @@ import Loading from './Loading.svelte' import {CheckPrerequisites} from '../wailsjs/go/main/App.js' import { onMount } from 'svelte' - import { loading, testPage, } from './global' + import { loading, testPage, currentPage } from './global' import { slide } from 'svelte/transition' import Navbar from './Navbar.svelte' - import Testpage from './Testpage.svelte' + import Instancepage from './Instancepage.svelte' import { set_attributes, set_style } from 'svelte/internal'; let width: int = 10 @@ -32,21 +32,19 @@ - {#if $testPage} -
- -
- {:else} {#if $loading}
- {:else} + {:else if $currentPage == 1} +
+ +
+ {:else if $currentPage == 2}
{/if} - {/if} diff --git a/fclauncher/frontend/src/Testpage.svelte b/fclauncher/frontend/src/Instancepage.svelte similarity index 91% rename from fclauncher/frontend/src/Testpage.svelte rename to fclauncher/frontend/src/Instancepage.svelte index 206f1f7..e7312ef 100644 --- a/fclauncher/frontend/src/Testpage.svelte +++ b/fclauncher/frontend/src/Instancepage.svelte @@ -1,6 +1,8 @@
- -
- {#if $addingInstance}