mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
use ternary op to send copyright text to songlist component
+ return a zeros if seconds is undefined in formatSeconds()
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<SongList
|
||||
:tracks="FStore.tracks"
|
||||
:path="FStore.path"
|
||||
:copyright="() => null"
|
||||
:copyright="null"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,13 +6,7 @@
|
||||
:tracks="disc"
|
||||
:on_album_page="true"
|
||||
:disc="key"
|
||||
:copyright="
|
||||
() => {
|
||||
if (isLastDisc(key)) {
|
||||
return copyright;
|
||||
}
|
||||
}
|
||||
"
|
||||
:copyright="isLastDisc(key) ? () => copyright : null"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user