Skip to content

Commit

Permalink
categorias arregladas en todas partes
Browse files Browse the repository at this point in the history
  • Loading branch information
matias1305 committed Dec 13, 2018
1 parent 9feb11f commit be89c60
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions src/app/components/card-book/card-book.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,11 @@ <h6> {{ book_modal.user.phone }} </h6>
<h6> {{ book_modal.user.created_date }} </h6>
</div>
</div>
<!-- TODO: Revisar que esté aparezcan todas las cat. Copiar en modal de cardbook -->
<div class="card-body">
<small class="text-muted">Categorías favoritas:</small>
<ul>
<li>
<h6>{{ book_modal.user.categories }}</h6>
<li *ngFor="let c of book_modal.genres">
<h6>{{ c }}</h6>
</li>
</ul>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/app/components/card-book/card-book.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class CardBookComponent implements OnInit {
title: '',
editorial: '',
type: '',
categories: [],
genres: [],
language: '',
num_page: 0,
original: false,
Expand Down Expand Up @@ -177,4 +177,5 @@ export class CardBookComponent implements OnInit {
.subscribe( data => this.count_book = data.length );
}


}
2 changes: 1 addition & 1 deletion src/app/components/one-book/one-book.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h3 class="box-title">Detalles</h3>
<div class="form-group row">
<label class="control-label text-left col-md-6">Género:</label>
<div class="col-md-6">
<p class="form-control-static"> {{ book.categories }} </p>
<p class="form-control-static" *ngFor="let c of book.genres"> - {{ c }} </p>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/app/interface/books.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface Books{
title: string;
editorial: string;
type: string;
categories: Array<string>;
genres: Array<string>;
language: string;
comment: string;
num_page: number;
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/profile/profile.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ <h6>{{ profile.created_date }}</h6>
<div class="card-body">
<small class="text-muted">Categorías favoritas:</small>
<ul>
<li>
<h6 *ngFor="let c of profile.categories">{{ c }}</h6>
<li *ngFor="let c of profile.genres">
<h6>{{ c }}</h6>
</li>
</ul>
</div>
Expand Down
5 changes: 2 additions & 3 deletions src/app/shared/sidebar/sidebar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
<div class="scroll-sidebar">
<nav class="sidebar-nav">
<ul id="sidebarnav">
<li class="nav-small-cap" *ngIf="role === 'normal'">CATEGORÍAS</li>
<li class="nav-small-cap" style="color:white;" *ngIf="role === 'normal'">CATEGORÍAS</li>
<li class="nav-small-cap" *ngIf="role === 'admin'">MENÚ</li>
<li class="nav-devider"></li>
<li class="nav-small-cap"
routerLinkActive="active"
<li class="nav-small-cap active"
style="cursor: pointer;"
*ngFor="let m of menu">
<a *ngIf="role === 'normal'" [routerLink]="['/search', 'sidebar.'+m.name]"> {{ m }} </a>
Expand Down

0 comments on commit be89c60

Please sign in to comment.