0
0
Fork 0

Pass the user's ID to the playlist export modal.

This commit is contained in:
Oliver-Akins 2020-08-14 22:34:42 -06:00
parent f5611e8b98
commit 12d7bc688d
2 changed files with 4 additions and 0 deletions

View file

@ -183,6 +183,7 @@ export default {
// Set the Vue user object
this.user.name = data.display_name || data.id;
this.user.image = data.images.length > 0 ? data.images[0].url : ``;
this.$emit(`user_id`, data.id);
}).catch((err) => {
console.error(err)

View file

@ -8,6 +8,7 @@
:data_exists="data.length !== 0"
:is_track_data="config.type === 'Tracks'"
@playlist_export="playlist_export_modal = true"
@user_id="user_id = $event"
@data_request="get_data"
/>
<div v-if="error" class="error">{{ error }}</div>
@ -22,6 +23,7 @@
<PlaylistExport
v-if="playlist_export_modal"
:config="config"
:user_id="user_id"
@close="playlist_export_modal = false"
/>
</div>
@ -57,6 +59,7 @@ export default {
data: [],
error: ``,
playlist_export_modal: false,
user_id: null,
};},
computed: {
items() {