mirror of https://github.com/Ombi-app/Ombi
parent
043eb08aa5
commit
ac3f1941bc
@ -0,0 +1,3 @@
|
||||
<div class="wizard-background">
|
||||
<h2 style="color:white">Unsubscribed!</h2>
|
||||
</div>
|
@ -0,0 +1,28 @@
|
||||
import { Component, OnInit } from "@angular/core";
|
||||
import { IdentityService, SettingsService } from "../../../services";
|
||||
|
||||
import { ActivatedRoute } from "@angular/router";
|
||||
import { AuthService } from "../../../auth/auth.service";
|
||||
|
||||
@Component({
|
||||
templateUrl: "./unsubscribe-confirm.component.html",
|
||||
})
|
||||
export class UnsubscribeConfirmComponent implements OnInit {
|
||||
|
||||
private userId: string;
|
||||
|
||||
constructor(private authService: AuthService,
|
||||
private readonly identityService: IdentityService,
|
||||
private readonly settingsService: SettingsService,
|
||||
private route: ActivatedRoute) {
|
||||
this.route.params.subscribe(async (params: any) => {
|
||||
if (typeof params.id === 'string' || params.id instanceof String) {
|
||||
this.userId = params.id;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public async ngOnInit() {
|
||||
this.identityService.unsubscribeNewsletter(this.userId).subscribe()
|
||||
}
|
||||
}
|
Loading…
Reference in new issue