diff --git a/src/components/modals/PlaylistExport.vue b/src/components/modals/PlaylistExport.vue index 44512bf..c0607fa 100644 --- a/src/components/modals/PlaylistExport.vue +++ b/src/components/modals/PlaylistExport.vue @@ -33,7 +33,7 @@ Public Playlist Create Playlist @@ -83,6 +83,7 @@ export default { id: null, url: null, }, + exported_settings: null, }}, mounted() { let date = new Date(); @@ -94,9 +95,22 @@ export default { this.container = true; }); }, + computed: { + can_export() { + + // Spotify has a name length of 100 characters, ensure we don't error + if (this.name.length > 100) { + return false; + }; + + if (this.exported_settings) { + + }; + return true; + } + }, methods: { create_playlist() { - this.create_button_enabled = false; // Generate payload object let payload = { @@ -105,6 +119,8 @@ export default { public: this.is_public }; + this.exported_settings = payload; + // Create the Spotify playlist (no tracks yet) axios.post( `${this.api_url}/users/${this.user_id}/playlists`,