Commit eeb2ae01 by Adarsh K

Merge branch 'adarsh' into 'master'

cart change See merge request !80
parents 8683a9f4 7c5a6851
...@@ -138,4 +138,4 @@ const routes: Routes = [ ...@@ -138,4 +138,4 @@ const routes: Routes = [
], ],
exports: [RouterModule] exports: [RouterModule]
}) })
export class AppRoutingModule {} export class AppRoutingModule { }
...@@ -171,8 +171,8 @@ ...@@ -171,8 +171,8 @@
<hr /> <hr />
<div class="coupon_code"> <div class="coupon_code">
<div class="promo-row"> <div class="promo-row">
<input class="" placeholder="COUPON CODE: GET50" #promo /><button class="add_btn" <input class="" placeholder="COUPON CODE: GET50" #promo /><button
(click)="promoApply(promo.value)"> class="add_btn apply_btn" (click)="promoApply(promo.value)">
APPLY APPLY
</button> </button>
</div> </div>
......
...@@ -236,6 +236,9 @@ ...@@ -236,6 +236,9 @@
font-size: 17px; font-size: 17px;
font-weight: bolder; font-weight: bolder;
} }
.apply_btn {
display: flex;
}
} }
.promo-success { .promo-success {
color: #31b131; color: #31b131;
......
...@@ -60,7 +60,7 @@ export class SearchmodalPage implements OnInit { ...@@ -60,7 +60,7 @@ export class SearchmodalPage implements OnInit {
this.productsService.setProd(data); this.productsService.setProd(data);
} }
this.searchClose(); this.searchClose();
this.router.navigateByUrl(url, { queryParams: data, replaceUrl: true }); this.router.navigateByUrl(url, { queryParams: data, skipLocationChange: true });
document.body.scrollTop = document.documentElement.scrollTop = 0; document.body.scrollTop = document.documentElement.scrollTop = 0;
} }
......
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