disable menu button of current track on loading

This commit is contained in:
Tixie
2020-02-22 17:17:08 +01:00
parent 652a4736e8
commit 92d9371100
2 changed files with 11 additions and 1 deletions

View File

@ -25,7 +25,13 @@
<div class="controls__menu">
<Popper>
<button slot="btn" class="controls__menuBtn" aria-label="track menu"><IconMenu></IconMenu></button>
<button
slot="btn"
class="controls__menuBtn"
disabled={!$current}
class:disabled={!$current}
aria-label="track menu"
><IconMenu></IconMenu>{!!$current}</button>
<div slot="content" class="contextMenu__list">
{#if $current}
<ContextMenu track={$current}></ContextMenu>