Solving private issues

This commit is contained in:
Zoe Roux 2020-05-07 00:02:00 +02:00
parent 14052324e3
commit 82dfe99c68
2 changed files with 8 additions and 8 deletions

View File

@ -69,7 +69,7 @@
<mat-form-field class="w-100">
<mat-label>Studio</mat-label>
<input matInput [value]="this.show.studio?.name" (input)="this.show.studio = {slug: null, name: $event.target.value}; console.log(this.show.studio)"
<input matInput [value]="this.show.studio?.name" (input)="this.show.studio = {slug: null, name: $event.target.value};"
[matAutocomplete]="studioAuto" name="studio">
<mat-autocomplete #studioAuto="matAutocomplete" (optionSelected)="this.show.studio = $event.option.value">
<mat-option *ngFor="let studio of this.allStudios" [value]="studio">

View File

@ -20,13 +20,13 @@ import {MatSnackBar} from "@angular/material/snack-bar";
export class MetadataEditComponent
{
@ViewChild("genreInput") private genreInput: ElementRef<HTMLInputElement>;
private allGenres: Genre[];
private allStudios: Studio[];
public allGenres: Genre[];
public allStudios: Studio[];
@ViewChild("identifyGrid") private identifyGrid: ShowGridComponent;
private identifing: Observable<Show[]>;
private identifying: Observable<Show[]>;
private identifiedShows: [string, Show[]];
private providers: Provider[];
public providers: Provider[];
public metadataChanged: boolean = false;
@ -57,7 +57,7 @@ export class MetadataEditComponent
{
return;
},
(error) =>
() =>
{
this.snackBar.open("An unknown error occured.", null, { horizontalPosition: "left", panelClass: ['snackError'], duration: 2500 });
}
@ -116,10 +116,10 @@ export class MetadataEditComponent
{
if (this.identifiedShows && this.identifiedShows[0] === name)
return of(this.identifiedShows[1]);
this.identifing = this.http.get<Show[]>("/api/show/identify/" + name + "?isMovie=" + this.show.isMovie).pipe(
this.identifying = this.http.get<Show[]>("/api/show/identify/" + name + "?isMovie=" + this.show.isMovie).pipe(
tap(result => this.identifiedShows = [name, result])
);
return this.identifing;
return this.identifying;
}
reIdentify(search: string)