fixed offers issue

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

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

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

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

Loading…
Cancel
Save