Skip to content

Commit

Permalink
Fix issue with loading indicator being immediately shown when navigat…
Browse files Browse the repository at this point in the history
…ing back from subdomain
  • Loading branch information
jonaszkadziela committed May 4, 2024
1 parent 329c081 commit 7028d37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/views/components/website-button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
rel="noopener noreferrer"
x-data="{ loading: false }"
@click="loading = true"
@pageshow.window="loading = false"
>
<div class="bg-gray-700 cursor-pointer duration-150 ease-in-out flex flex-col h-24 hover:-translate-y-1 hover:bg-gray-800 justify-center p-2 text-white transform-all w-36">
<i x-bind:class="loading ? 'fa-circle-notch fa-solid fa-spin text-4xl' : '{{ $icon }}'"></i>
Expand Down

0 comments on commit 7028d37

Please sign in to comment.