Commit 81b7af19 by Jansa Jose

change filter code

parent e67faa85
...@@ -45,9 +45,9 @@ ...@@ -45,9 +45,9 @@
</div> </div>
<div class="purchase_content_section"> <div class="purchase_content_section">
<div class="search_list_header"> <div class="search_list_header">
<h4>Trending Products</h4> <h4>Trending Products</h4>
</div> </div>
<div class="search_listing_content"> <div class="search_listing_content">
<div class="loader_overlay" *ngIf="trend_loader"></div> <div class="loader_overlay" *ngIf="trend_loader"></div>
<ul *ngIf="trendingProductData" <ul *ngIf="trendingProductData"
......
<div class="purchase_taskbar"> <div class="purchase_taskbar">
<div class="purchase_searchbar"> <div class="purchase_searchbar">
<div class="purchase_inner_search_bar" [class.redLine]="searchLine == 1"> <div class="purchase_inner_search_bar">
<input #productSearch type="text" placeholder="Search here" (keyup)="productSearchfun(productSearch.value)"> <input #productSearch type="text" placeholder="Search here" (keyup)="productSearchfun(productSearch.value)">
<button class="search_btn" (click)="productSearchFunClick(productSearch.value)">Search</button> <button class="search_btn" (click)="productSearchFunClick(productSearch.value)">Search</button>
<div class="clear"></div> <div class="clear"></div>
......
...@@ -16,8 +16,6 @@ export class SearchbarComponent implements OnInit { ...@@ -16,8 +16,6 @@ export class SearchbarComponent implements OnInit {
imageServer: string; imageServer: string;
loginDetails:any; loginDetails:any;
searchLine:any;
public scrollbarOptions = { axis: 'y', theme: 'minimal-dark' }; public scrollbarOptions = { axis: 'y', theme: 'minimal-dark' };
@ViewChild("productSearch") public productSearchRef: ElementRef; @ViewChild("productSearch") public productSearchRef: ElementRef;
...@@ -28,7 +26,6 @@ export class SearchbarComponent implements OnInit { ...@@ -28,7 +26,6 @@ export class SearchbarComponent implements OnInit {
public subjectService : SubjectService) { public subjectService : SubjectService) {
this.productArray = true; this.productArray = true;
this.imageServer = ImageStorage; this.imageServer = ImageStorage;
this.searchLine = 0;
} }
ngOnInit() { ngOnInit() {
...@@ -36,7 +33,8 @@ export class SearchbarComponent implements OnInit { ...@@ -36,7 +33,8 @@ export class SearchbarComponent implements OnInit {
} }
gotosearch(){ gotosearch(){
this.searchLine = !this.searchLine; this.productArray = false;
this.goToPage('productlist',{"key":' '});
} }
checkUserLogin(){ checkUserLogin(){
......
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