Only make the export playlist button appear if the data that exists is track data.
This commit is contained in:
parent
c8400adad5
commit
a0b17b5877
2 changed files with 7 additions and 1 deletions
|
|
@ -56,7 +56,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="type === 'Tracks' && data_exists"
|
v-if="data_exists && is_track_data"
|
||||||
id="playlist_button"
|
id="playlist_button"
|
||||||
>
|
>
|
||||||
<button @click.self="event('playlist_export')">
|
<button @click.self="event('playlist_export')">
|
||||||
|
|
@ -80,6 +80,11 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
is_track_data: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
dev: {
|
dev: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: true,
|
required: true,
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
:auth_redirect="auth_redirect"
|
:auth_redirect="auth_redirect"
|
||||||
:token="get_token()"
|
:token="get_token()"
|
||||||
:data_exists="data.length !== 0"
|
:data_exists="data.length !== 0"
|
||||||
|
:is_track_data="config.type === 'Tracks'"
|
||||||
@playlist_export="handle_export"
|
@playlist_export="handle_export"
|
||||||
@data_request="get_data"
|
@data_request="get_data"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue