Skip to content

Commit

Permalink
loading priority button
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Dec 26, 2022
1 parent a0463c0 commit c68b742
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/bridge-ui/src/components/form/BridgeForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -315,15 +315,7 @@

<Memo bind:memo />

{#if !requiresAllowance}
<button
class="btn btn-accent w-full"
on:click={bridge}
disabled={btnDisabled}
>
{$_("home.bridge")}
</button>
{:else if loading || $pendingTransactions.length}
{#if loading}
<button class="btn btn-accent w-full" disabled={true}>
<LottiePlayer
src="/lottie/loader.json"
Expand All @@ -337,6 +329,14 @@
controlsLayout={[]}
/>
</button>
{:else if !requiresAllowance}
<button
class="btn btn-accent w-full"
on:click={bridge}
disabled={btnDisabled}
>
{$_("home.bridge")}
</button>
{:else}
<button
class="btn btn-accent w-full mt-6"
Expand Down

0 comments on commit c68b742

Please sign in to comment.