diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 7e77b65f50b3a12268708e69f4d0799034cce742..e94be3cbafda9a2979d9c4f208fa8d88212de7a3 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -28,9 +28,13 @@ export class AppComponent { title: 'My Reservation', url: '/myreservation', icon: 'clipboard' + }, { + title: 'My Rides', + url: '/hirebike', + icon: 'clipboard' }, { - title: 'My Rides', + title: 'Ride History', url: '/ridehistory', icon: 'clipboard' }, diff --git a/src/app/ridehistory/ridehistory.page.html b/src/app/ridehistory/ridehistory.page.html index 55213cbaa55c8b1b04ecc75434f202dad6a649f3..14516e312d296107e828dc6dfa3f51672f232d58 100644 --- a/src/app/ridehistory/ridehistory.page.html +++ b/src/app/ridehistory/ridehistory.page.html @@ -10,9 +10,8 @@ -
+
-
@@ -67,65 +66,7 @@
-
-
-
-
- - - - Bike ID - - - - {{ride.bikeId}} - - - - - Price - - - - {{ride.price}} - - - - - - Distance - - - - {{ride.distance}} - - - - - - Start-Date - - - - {{ride.startDate}} - - - - - - End-Date - - - - {{ride.endDate}} - - - - -
-
-
\ No newline at end of file diff --git a/src/app/ridehistory/ridehistory.page.ts b/src/app/ridehistory/ridehistory.page.ts index c9a92d76a5122ce0a5dfd6eb83a7eac03dab829a..869b31d74b1b6c10efa5061c0a25be9ef169db7c 100644 --- a/src/app/ridehistory/ridehistory.page.ts +++ b/src/app/ridehistory/ridehistory.page.ts @@ -47,7 +47,5 @@ export class RidehistoryPage implements OnInit { //alert('Error getting location - ' + JSON.stringify(error)); }); } - showRideDetails() { - //this.router.navigateByUrl('/myreservation'); - } + }