mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 09:12:57 -07:00
Fix build !wip
This commit is contained in:
parent
28159cdf53
commit
0bbeeaeb3e
2 changed files with 3 additions and 8 deletions
|
@ -1,10 +1,8 @@
|
||||||
import { Component } from "@angular/core";
|
import { Component } from "@angular/core";
|
||||||
import { Router } from "@angular/router";
|
import { Router } from "@angular/router";
|
||||||
|
|
||||||
import { AuthService } from "../../auth/auth.service";
|
|
||||||
import { IdentityService } from "../../services";
|
import { IdentityService } from "../../services";
|
||||||
import { NotificationService } from "../../services";
|
import { NotificationService } from "../../services";
|
||||||
import { SettingsService } from "../../services";
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "./createadmin.component.html",
|
templateUrl: "./createadmin.component.html",
|
||||||
|
@ -15,7 +13,7 @@ export class CreateAdminComponent {
|
||||||
public password: string;
|
public password: string;
|
||||||
|
|
||||||
constructor(private identityService: IdentityService, private notificationService: NotificationService,
|
constructor(private identityService: IdentityService, private notificationService: NotificationService,
|
||||||
private router: Router, private auth: AuthService, private settings: SettingsService) { }
|
private router: Router) { }
|
||||||
|
|
||||||
public createUser() {
|
public createUser() {
|
||||||
this.identityService.createWizardUser({username: this.username, password: this.password, usePlexAdminAccount: false}).subscribe(x => {
|
this.identityService.createWizardUser({username: this.username, password: this.password, usePlexAdminAccount: false}).subscribe(x => {
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
import { Router } from "@angular/router";
|
import { Router } from "@angular/router";
|
||||||
|
|
||||||
import { PlexService } from "../../services";
|
import { PlexService } from "../../services";
|
||||||
import { IdentityService, NotificationService, SettingsService } from "../../services";
|
import { IdentityService, NotificationService, } from "../../services";
|
||||||
import { AuthService } from "./../../auth/auth.service";
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "./plex.component.html",
|
templateUrl: "./plex.component.html",
|
||||||
|
@ -15,9 +14,7 @@ export class PlexComponent {
|
||||||
|
|
||||||
constructor(private plexService: PlexService, private router: Router,
|
constructor(private plexService: PlexService, private router: Router,
|
||||||
private notificationService: NotificationService,
|
private notificationService: NotificationService,
|
||||||
private identityService: IdentityService,
|
private identityService: IdentityService) { }
|
||||||
private settings: SettingsService,
|
|
||||||
private auth: AuthService) { }
|
|
||||||
|
|
||||||
public requestAuthToken() {
|
public requestAuthToken() {
|
||||||
this.plexService.logIn(this.login, this.password).subscribe(x => {
|
this.plexService.logIn(this.login, this.password).subscribe(x => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue