Commit 3ba3722646fd9f0d7180189e890e1b707e3ba0df
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master(mpuebla) See merge request !41
Showing
2 changed files
Show diff stats
src/app/components/sidebar/sidebar.component.html
... | ... | @@ -49,7 +49,7 @@ |
49 | 49 | <!-- PERSONALIZAR --> |
50 | 50 | <div class="col-auto px-1 my-2"> |
51 | 51 | <button |
52 | - *ngIf="esPersonalizable(producto)" | |
52 | + *ngIf="producto.tieneSinonimos" | |
53 | 53 | type="button" |
54 | 54 | class="btn btn-light btn-sm my-auto float-left border shadow" |
55 | 55 | (click)="personalizarPromo(producto, i)"> |
src/app/components/sidebar/sidebar.component.ts
... | ... | @@ -78,15 +78,6 @@ export class SidebarComponent implements OnInit { |
78 | 78 | return; |
79 | 79 | } |
80 | 80 | |
81 | - esPersonalizable(producto: Producto) { | |
82 | - | |
83 | - var esPersonalizable: boolean = false; | |
84 | - if (producto.tieneSinonimos) | |
85 | - esPersonalizable = true; | |
86 | - | |
87 | - return esPersonalizable; | |
88 | - } | |
89 | - | |
90 | 81 | personalizarPromo(producto: Producto, index) { |
91 | 82 | |
92 | 83 | this.productoService.productoAcargar = producto; |