Updated create playlist dialog to not require a type to be set prior

- duration and registered variables are now set for playlists
This commit is contained in:
Isaac Abadi
2020-08-09 19:23:29 -04:00
parent 8c7b2dfc79
commit fcaf8b5a62
4 changed files with 95 additions and 20 deletions

View File

@@ -265,11 +265,12 @@ export class PostsService implements CanActivate {
return this.http.post(this.path + 'disableSharing', {uid: uid, type: type, is_playlist: is_playlist}, this.httpOptions);
}
createPlaylist(playlistName, fileNames, type, thumbnailURL) {
createPlaylist(playlistName, fileNames, type, thumbnailURL, duration = null) {
return this.http.post(this.path + 'createPlaylist', {playlistName: playlistName,
fileNames: fileNames,
type: type,
thumbnailURL: thumbnailURL}, this.httpOptions);
thumbnailURL: thumbnailURL,
duration: duration}, this.httpOptions);
}
getPlaylist(playlistID, type, uuid = null) {