improvement(player): use togglePause instead of pause and resume
This commit is contained in:
@@ -117,12 +117,7 @@
|
||||
<Button variant="outline" size="icon">
|
||||
<SkipBack />
|
||||
</Button>
|
||||
<Button
|
||||
type="submit"
|
||||
formaction="/player?/{player.isPaused ? 'resume' : 'pause'}"
|
||||
variant="outline"
|
||||
size="icon"
|
||||
>
|
||||
<Button type="submit" formaction="/player?/toggle-pause" variant="outline" size="icon">
|
||||
{#if player.isPaused}
|
||||
<Play />
|
||||
{:else}
|
||||
|
||||
Reference in New Issue
Block a user