| @@ -62,6 +62,13 @@ export class CartPage implements OnInit { | |||||
| url: url | url: url | ||||
| } | } | ||||
| }); | }); | ||||
| modal.onDidDismiss().then(() => { | |||||
| this.showMenuButton(); | |||||
| localStorage.removeItem('userCart'); | |||||
| this.router.navigate(['/profile']); | |||||
| }); | |||||
| return await modal.present(); | return await modal.present(); | ||||
| } | } | ||||
| @@ -1,4 +1,13 @@ | |||||
| <ion-content> | <ion-content> | ||||
| <ion-refresher slot="fixed" (ionRefresh)="doRefresh($event)"> | |||||
| <ion-refresher-content | |||||
| pullingIcon="arrow-down" | |||||
| pullingText="Pull to refresh" | |||||
| refreshingSpinner="circles" | |||||
| refreshingText="Refreshing..."> | |||||
| </ion-refresher-content> | |||||
| </ion-refresher> | |||||
| <div class="overlay" [ngClass]="{ 'active' : show_sort_popup }"></div> | <div class="overlay" [ngClass]="{ 'active' : show_sort_popup }"></div> | ||||
| <section class="header-bar"> | <section class="header-bar"> | ||||
| @@ -25,7 +25,17 @@ export class MallsPage implements OnInit { | |||||
| ) { } | ) { } | ||||
| ngOnInit() { | ngOnInit() { | ||||
| if (localStorage.allMalls) { | |||||
| this.allMalls = JSON.parse(localStorage.allMalls); | |||||
| this.tempMalls = JSON.parse(localStorage.allMalls); | |||||
| } else { | |||||
| this.getMallsByLocation() | |||||
| } | |||||
| } | |||||
| doRefresh(e: any) { | |||||
| this.getMallsByLocation(); | this.getMallsByLocation(); | ||||
| e.target.complete(); | |||||
| } | } | ||||
| toggleSearchBar() { | toggleSearchBar() { | ||||