Skip to content

Commit ba5063d

Browse files
committed
fix
1 parent d8c5c04 commit ba5063d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

MyMusicClientSveltePwa/src/lib/components/Modals.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
nextSong, previousSong,
77
isShuffledEnabled, isLoopingEnabled,
88
toggleShuffle, playOrPauseSong,
9-
toggleLoop } from "../scripts/playbackService";
9+
toggleLoop, isLoading } from "../scripts/playbackService";
1010
import { getImageUrl } from "../scripts/api";
1111
import { get } from "svelte/store";
1212
import { isTimerEnabled, timeLeft, toggleSleepTimer } from "../scripts/sleeptimerService";
@@ -18,6 +18,7 @@
1818
$: $isLoopingEnabled;
1919
$: $isTimerEnabled;
2020
$: $timeLeft;
21+
$: $isLoading
2122
2223
function togglePlay() {
2324
playOrPauseSong(get(currentSong).id);
@@ -67,6 +68,8 @@
6768
<button on:click={togglePlay} class="btn w-100">
6869
{#if $isPlaying}
6970
<i class="fa-solid fa-pause fa-2xl"></i>
71+
{:else if $isLoading}
72+
<i class="fa-solid fa-spinner fa-spin fa-2xl"></i>
7073
{:else}
7174
<i class="fa-solid fa-play fa-2xl"></i>
7275
{/if}
@@ -143,7 +146,7 @@
143146
border-color: #1CC558 !important;
144147
background-color: #343a4000 !important;
145148
}
146-
149+
147150
148151
input[type="range"]::-webkit-slider-thumb {
149152
background-color: #1CC558;

0 commit comments

Comments
 (0)