File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
MyMusicClientSveltePwa/src/lib/components Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 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" ;
1818 $: $isLoopingEnabled;
1919 $: $isTimerEnabled;
2020 $: $timeLeft;
21+ $: $isLoading
2122
2223 function togglePlay () {
2324 playOrPauseSong (get (currentSong).id );
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 }
143146 border-color : #1CC558 !important ;
144147 background-color : #343a4000 !important ;
145148 }
146-
149+
147150
148151input [type = " range" ]::-webkit-slider-thumb {
149152 background-color : #1CC558 ;
You can’t perform that action at this time.
0 commit comments