0
0
Fork 0

Only make the export playlist button appear if the data that exists is track data.

This commit is contained in:
Tyler-A 2020-08-07 00:37:27 -06:00
parent c8400adad5
commit a0b17b5877
2 changed files with 7 additions and 1 deletions

View file

@ -56,7 +56,7 @@
</button>
</div>
<div
v-if="type === 'Tracks' && data_exists"
v-if="data_exists && is_track_data"
id="playlist_button"
>
<button @click.self="event('playlist_export')">
@ -80,6 +80,11 @@ export default {
type: Boolean,
required: true,
},
is_track_data: {
type: Boolean,
required: false,
default: false,
},
dev: {
type: Boolean,
required: true,

View file

@ -7,6 +7,7 @@
:auth_redirect="auth_redirect"
:token="get_token()"
:data_exists="data.length !== 0"
:is_track_data="config.type === 'Tracks'"
@playlist_export="handle_export"
@data_request="get_data"
/>