bugfixes
This commit is contained in:
parent
03105c4fc6
commit
da1a1b1516
3 changed files with 1 additions and 3 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 20 KiB |
|
|
@ -58,8 +58,6 @@ export class HeroBannerComponent implements OnChanges {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshPage(movieId: number) {}
|
|
||||||
|
|
||||||
toggleLikeMovie(movieId: number): void {
|
toggleLikeMovie(movieId: number): void {
|
||||||
if (this.favoriteMovies.includes(movieId)) {
|
if (this.favoriteMovies.includes(movieId)) {
|
||||||
this.favoriteMovies = this.favoriteMovies.filter((id) => id !== movieId);
|
this.favoriteMovies = this.favoriteMovies.filter((id) => id !== movieId);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { BehaviorSubject, lastValueFrom, Observable, of } from 'rxjs';
|
import { BehaviorSubject, lastValueFrom, Observable } from 'rxjs';
|
||||||
import { environment } from '../environments/environment';
|
import { environment } from '../environments/environment';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue