mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-12-01 05:38:29 +00:00
Fix remaining issues with local playlists
This commit is contained in:
@@ -28,7 +28,7 @@ export default {
|
||||
required: true,
|
||||
},
|
||||
videoId: {
|
||||
type: Object,
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user