mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Reload playlist on adding video
In case video was added to the saame playlist
This commit is contained in:
parent
0bc4a677d4
commit
03d5eefab0
@ -60,7 +60,10 @@ final class PlaylistsModel: ObservableObject {
|
||||
onFailure: @escaping (RequestError) -> Void = { _ in }
|
||||
) {
|
||||
accounts.api.addVideoToPlaylist(videoID, playlistID, onFailure: onFailure) {
|
||||
self.load(force: true, onSuccess: onSuccess)
|
||||
self.load(force: true) {
|
||||
self.reloadPlaylists.toggle()
|
||||
onSuccess()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user