Fix remaining issues with local playlists

This commit is contained in:
Bnyro
2023-06-15 22:41:26 +02:00
parent 37d6423e08
commit a52c511d29
3 changed files with 16 additions and 24 deletions

View File

@@ -28,7 +28,7 @@ export default {
required: true,
},
videoId: {
type: Object,
type: String,
required: true,
},
},

View File

@@ -177,17 +177,7 @@ export default {
methods: {
removeVideo() {
this.$refs.removeButton.disabled = true;
this.fetchJson(this.authApiUrl() + "/user/playlists/remove", null, {
method: "POST",
body: JSON.stringify({
playlistId: this.playlistId,
index: this.index,
}),
headers: {
Authorization: this.getAuthToken(),
"Content-Type": "application/json",
},
}).then(json => {
this.removeVideoFromPlaylist(this.playlistId, null, this.index).then(json => {
if (json.error) alert(json.error);
else this.$emit("remove");
});