Discard subscriptions
This commit is contained in:
parent
b7cac15901
commit
026506e2d1
@ -196,16 +196,19 @@ export class ProfileEditDialogComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
disconnectSocialAccount(id: number): void {
|
disconnectSocialAccount(id: number): void {
|
||||||
this.profileService.disconnectSocialAccount(id).subscribe({
|
this.profileService
|
||||||
next: (id: number) => {
|
.disconnectSocialAccount(id)
|
||||||
this.socialAccounts = this.socialAccounts.filter((a) => a.id != id)
|
.pipe(takeUntil(this.unsubscribeNotifier))
|
||||||
},
|
.subscribe({
|
||||||
error: (error) => {
|
next: (id: number) => {
|
||||||
this.toastService.showError(
|
this.socialAccounts = this.socialAccounts.filter((a) => a.id != id)
|
||||||
$localize`Error disconnecting social account`,
|
},
|
||||||
error
|
error: (error) => {
|
||||||
)
|
this.toastService.showError(
|
||||||
},
|
$localize`Error disconnecting social account`,
|
||||||
})
|
error
|
||||||
|
)
|
||||||
|
},
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user