Add toggle for animation start

This commit is contained in:
ernstmul
2025-02-04 15:01:36 +01:00
parent 57ec375a66
commit 97f392bab2
@@ -17,7 +17,7 @@
import { tierToPlan } from '$lib/stores/billing';
let showCustomId = false;
let isLoading = false;
let isLoading = true;
let id: string;
let startAnimation = false;
let projectName = '';
@@ -130,6 +130,10 @@
class="page-container u-flex-vertical u-cross-child-center u-cross-center"
class:u-margin-block-start-96={!isLoading}>
{#if isLoading}
<button
on:click={() => {
startAnimation = !startAnimation;
}}>Toggle animation</button>
<Loading {startAnimation} />
{:else}
<img