Commit 50a70504 authored by Cédric Moreau's avatar Cédric Moreau

[enh] Affiche du thumbnail dans la liste des annonces d'un vendeur

parent 75259f55
<ion-content padding>
<ion-row>
<ion-col col-12 col-sm-12 col-lg-6>
<img src="{{ accountService.acc.logo }}">
<ion-col col-12>
<img class="logo" src="{{ accountService.acc.logo }}">
<h2>{{ accountService.acc.title }}</h2>
<pre>{{ accountService.acc.desc }}</pre>
<h3>Annonces</h3>
......
account {
img {
.logo {
float: left;
max-width: 100px;
margin-top: 1.8rem;
......
......@@ -36,6 +36,9 @@ export class AccountPage implements OnInit {
this.announces = []
for (const a of res.announces) {
if (parseInt(a.stock)) {
if (a.images.length) {
a.thumbnail = a.images[0]
}
this.announces.push(a)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment