mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Made the popup a bit better !wip
This commit is contained in:
parent
70a3f2d02c
commit
af9739d805
1 changed files with 12 additions and 1 deletions
|
@ -116,6 +116,7 @@ export class LoginComponent implements OnDestroy, OnInit {
|
|||
localStorage.setItem("id_token", x.access_token);
|
||||
|
||||
if (this.authService.loggedIn()) {
|
||||
this.ngOnDestroy();
|
||||
this.router.navigate(["search"]);
|
||||
} else {
|
||||
this.notify.error(this.errorBody);
|
||||
|
@ -130,8 +131,17 @@ export class LoginComponent implements OnDestroy, OnInit {
|
|||
|
||||
this.authService.login({ usePlexOAuth: true, password: "", rememberMe: true, username: "", plexTvPin: pin }).subscribe(x => {
|
||||
|
||||
window.open(x.url, "_blank");
|
||||
window.open(x.url, "_blank", `toolbar=0,
|
||||
location=0,
|
||||
status=0,
|
||||
menubar=0,
|
||||
scrollbars=1,
|
||||
resizable=1,
|
||||
width=500,
|
||||
height=500`);
|
||||
|
||||
this.pinTimer = setInterval(() => {
|
||||
this.notify.info("Authenticating", "Loading... Please Wait");
|
||||
this.getPinResult(x.pinId);
|
||||
}, 10000);
|
||||
});
|
||||
|
@ -144,6 +154,7 @@ export class LoginComponent implements OnDestroy, OnInit {
|
|||
localStorage.setItem("id_token", x.access_token);
|
||||
|
||||
if (this.authService.loggedIn()) {
|
||||
this.ngOnDestroy();
|
||||
this.router.navigate(["search"]);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue