mirror of
https://github.com/revanced/revanced-website.git
synced 2025-05-10 19:34:25 +02:00
submission is now a modal
This commit is contained in:
parent
c389a77dfe
commit
10c3dad90f
@ -226,23 +226,26 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if submit}
|
{#if submit}
|
||||||
<div style="text-align: center;">
|
<Modal modalOpen={true}>
|
||||||
{#await submitBallot()}
|
<svelte:fragment slot="title">Submit</svelte:fragment>
|
||||||
<h6 in:fly={{ x: transitionDirection, easing: expoOut, duration: 1000 }}>
|
<div style="text-align: center;">
|
||||||
Submitting...
|
{#await submitBallot()}
|
||||||
</h6>
|
<h6 in:fly={{ x: transitionDirection, easing: expoOut, duration: 1000 }}>
|
||||||
{:then _}
|
Submitting...
|
||||||
<h6 in:fly={{ x: transitionDirection, easing: expoOut, duration: 1000 }}>
|
</h6>
|
||||||
Your vote has been cast.
|
{:then _}
|
||||||
</h6>
|
<h6 in:fly={{ x: transitionDirection, easing: expoOut, duration: 1000 }}>
|
||||||
{:catch err}
|
Your vote has been cast.
|
||||||
<h6 in:fly={{ x: transitionDirection, easing: expoOut, duration: 1000 }}>
|
</h6>
|
||||||
An error occured. Try again later.
|
{:catch err}
|
||||||
<br />
|
<h6 in:fly={{ x: transitionDirection, easing: expoOut, duration: 1000 }}>
|
||||||
{err}
|
An error occured. Try again later.
|
||||||
</h6>
|
<br />
|
||||||
{/await}
|
{err}
|
||||||
</div>
|
</h6>
|
||||||
|
{/await}
|
||||||
|
</div>
|
||||||
|
</Modal>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons-container">
|
<div class="buttons-container">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user