mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-11 17:11:28 +03:00
Fixed bug where updating a subscription would not work correctly
This commit is contained in:
@@ -71,9 +71,10 @@ export class EditSubscriptionDialogComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
saveSubscription() {
|
saveSubscription() {
|
||||||
this.postsService.updateSubscription(this.sub).subscribe(res => {
|
this.postsService.updateSubscription(this.new_sub).subscribe(res => {
|
||||||
this.sub = this.new_sub;
|
this.sub = this.new_sub;
|
||||||
this.new_sub = JSON.parse(JSON.stringify(this.sub));
|
this.new_sub = JSON.parse(JSON.stringify(this.sub));
|
||||||
|
this.postsService.reloadSubscriptions();
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ export class SubscriptionComponent implements OnInit {
|
|||||||
editSubscription() {
|
editSubscription() {
|
||||||
this.dialog.open(EditSubscriptionDialogComponent, {
|
this.dialog.open(EditSubscriptionDialogComponent, {
|
||||||
data: {
|
data: {
|
||||||
sub: this.subscription
|
sub: this.postsService.getSubscriptionByID(this.subscription.id)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user