11< div *ngIf ='!fetchingMovie ' class ="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 ">
2- < h1 class ="movie-title "> {{movie .title}}</ h1 >
2+ < h1 class ="movie-title "> {{omdbMovie .title}}</ h1 >
33 < div class ="col-sm-4 col-md-5 ">
4- < img *ngIf ="movie.image !== 'N/A' " class ="movie-image " src ="">
5- < div >
6- < button class ="btn btn-small " (click) ="addMovie() "> +</ button >
4+ < img *ngIf ="omdbMovie.image !== 'N/A' " class ="movie-image " src ="">
5+ < div *ngIf ="userService.getActiveUser() ">
6+ < div >
7+ < select [(ngModel)] ="libraryId ">
8+ < option *ngFor ="#library of userService.getActiveUser().libraries " value ={{library.id}} > {{library.name}}</ option >
9+ </ select >
10+ < button class ="btn btn-small " (click) ="addMovie() "> +</ button >
11+ </ div >
712 < span class ="glyphicon glyphicon-star "> </ span >
813 < span class ="glyphicon glyphicon-star "> </ span >
914 < span class ="glyphicon glyphicon-star "> </ span >
@@ -15,24 +20,24 @@ <h1 class="movie-title">{{movie.title}}</h1>
1520 < div class ="actors-container ">
1621 < label for ="actors "> Actors:</ label >
1722 < ul class ="actors ">
18- < li *ngFor ="#actor of movie .actors "> {{actor}}</ li >
23+ < li *ngFor ="#actor of omdbMovie .actors "> {{actor}}</ li >
1924 </ ul >
2025 </ div >
2126 < div >
2227 < label for ="director "> Directed By:</ label >
23- < span class ="director "> {{movie .directors}}</ span >
28+ < span class ="director "> {{omdbMovie .directors}}</ span >
2429 </ div >
2530 < div >
2631 < label for ="summary "> Plot Summary:</ label >
27- < p class ="summary "> {{movie .plot}}</ p >
32+ < p class ="summary "> {{omdbMovie .plot}}</ p >
2833 </ div >
2934 < div >
3035 < label for ="rating "> Rated:</ label >
31- < span class ="rating "> {{movie .rating}}</ span >
36+ < span class ="rating "> {{omdbMovie .rating}}</ span >
3237 </ div >
3338 < div >
3439 < label for ="released "> Released on:</ label >
35- < span class ="released "> {{movie .releaseDate}}</ span >
40+ < span class ="released "> {{omdbMovie .releaseDate}}</ span >
3641 </ div >
3742 < div class ="ratings-container ">
3843 < label for ="ratings "> Average Rating:</ label >
@@ -42,16 +47,16 @@ <h1 class="movie-title">{{movie.title}}</h1>
4247 < span class ="glyphicon glyphicon-star "> </ span >
4348 < span class ="glyphicon glyphicon-star "> </ span >
4449 < span class ="glyphicon glyphicon-star "> </ span >
45- < span *ngIf ="movie .tomatoMeter !== 'N/A' " class ="rating-rt ">
46- < a href ={{movie .tomatoUrl}} > {{movie .tomatoMeter}}% on rotton tomatoes</ a >
50+ < span *ngIf ="omdbMovie .tomatoMeter !== 'N/A' " class ="rating-rt ">
51+ < a href ={{omdbMovie .tomatoUrl}} > {{omdbMovie .tomatoMeter}}% on rotton tomatoes</ a >
4752 </ span >
4853 </ div >
4954 </ div >
5055 </ div >
5156 < div class ="col-sm-12 col-md-12 " *ngIf ="!fetchingLibraries ">
5257 < h3 > Libraries With This Title</ h3 >
5358 < div class ="movie-in-libraries ">
54- < div *ngFor ="#library of libraries " class ="movie-in-library ">
59+ < div *ngFor ="#library of movie. libraries " class ="movie-in-library ">
5560 < a class ="thumbnail " [routerLink] ="['/Library', { library: library.id }] "> {{library.name}}</ a >
5661 </ div >
5762 </ div >
0 commit comments