fixed offers issue

MOHEMM-SFH-COLORS
umasoodch 4 years ago
parent 3b830772ab
commit fb23143ed5

@ -18,7 +18,7 @@
{{key.categoryName_ar}}
</ion-label>
<ion-thumbnail slot="start">
<img [src]="key.content">
<div class="top-filter" [innerHTML]="key.content"></div>
</ion-thumbnail>
</ion-item>

@ -52,11 +52,12 @@ export class HomeComponent implements AfterViewInit {
console.log(this.direction);
let activeClass = this.cs.sharedService.getSharedData(OfferDiscountService.selected_filters);
// if (activeClass) {
// this.filterOffers(activeClass);
// }
this.getCategories();
this.tempSearch = JSON.parse(JSON.stringify(this.offersData));
if (activeClass) {
this.filterOffers(activeClass);
} else {
this.getCategories();
this.tempSearch = JSON.parse(JSON.stringify(this.offersData));
}
}
getCategories() {
this.offersService.getCategories({}).subscribe((result) => {

@ -1609,3 +1609,8 @@ ion-segment-button {
.top svg {
height: 30px !important;
}
.top-filter svg {
margin-top: 15px !important;
}

Loading…
Cancel
Save