diff --git a/Mohem/src/app/offersdiscount/filter/filter.component.html b/Mohem/src/app/offersdiscount/filter/filter.component.html index 6fd847ce..f8391b3b 100644 --- a/Mohem/src/app/offersdiscount/filter/filter.component.html +++ b/Mohem/src/app/offersdiscount/filter/filter.component.html @@ -18,7 +18,7 @@ {{key.categoryName_ar}} - +
diff --git a/Mohem/src/app/offersdiscount/home/home.component.ts b/Mohem/src/app/offersdiscount/home/home.component.ts index d38415bb..e63dfe2f 100644 --- a/Mohem/src/app/offersdiscount/home/home.component.ts +++ b/Mohem/src/app/offersdiscount/home/home.component.ts @@ -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) => { diff --git a/Mohem/src/theme/styles.scss b/Mohem/src/theme/styles.scss index 6c037c2f..ee38eac2 100644 --- a/Mohem/src/theme/styles.scss +++ b/Mohem/src/theme/styles.scss @@ -1609,3 +1609,8 @@ ion-segment-button { .top svg { height: 30px !important; } + + +.top-filter svg { + margin-top: 15px !important; +}