Commit e491395d authored by gap95's avatar gap95
Browse files

scrolling added in ride history

parent 96705627
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [ const routes: Routes = [
{ {
path: '', path: '',
redirectTo: 'login', redirectTo: 'login',
pathMatch: 'full' pathMatch: 'full'
}, },
{ {
path: 'home', path: 'home',
loadChildren: () => import('./home/home.module').then(m => m.HomePageModule) loadChildren: () => import('./home/home.module').then(m => m.HomePageModule)
}, },
{ {
path: 'list', path: 'list',
loadChildren: () => import('./list/list.module').then(m => m.ListPageModule) loadChildren: () => import('./list/list.module').then(m => m.ListPageModule)
}, },
{ {
path: 'login', path: 'login',
loadChildren: () => import('./auth/login/login.module').then( m => m.LoginPageModule) loadChildren: () => import('./auth/login/login.module').then( m => m.LoginPageModule)
}, },
{ {
path: 'register', path: 'register',
loadChildren: () => import('./auth/register/register.module').then( m => m.RegisterPageModule) loadChildren: () => import('./auth/register/register.module').then( m => m.RegisterPageModule)
}, { },
{
path: 'myreservation', path: 'myreservation',
loadChildren: () => import('./myreservation/myreservation.module').then( m => m.MyreservationPageModule) loadChildren: () => import('./myreservation/myreservation.module').then( m => m.MyreservationPageModule)
}, },
...@@ -34,6 +35,10 @@ const routes: Routes = [ ...@@ -34,6 +35,10 @@ const routes: Routes = [
path: 'ridehistory', path: 'ridehistory',
loadChildren: () => import('./ridehistory/ridehistory.module').then( m => m.RidehistoryPageModule) loadChildren: () => import('./ridehistory/ridehistory.module').then( m => m.RidehistoryPageModule)
}, },
{
path: 'feedback',
loadChildren: () => import('./feedback/feedback.module').then( m => m.FeedbackPageModule)
},
{ {
path: 'help-line', path: 'help-line',
loadChildren: () => import('./help-line/help-line.module').then( m => m.HelpLinePageModule) loadChildren: () => import('./help-line/help-line.module').then( m => m.HelpLinePageModule)
...@@ -43,14 +48,14 @@ const routes: Routes = [ ...@@ -43,14 +48,14 @@ const routes: Routes = [
loadChildren: () => import('./reset-password/reset-password.module').then( m => m.ResetPasswordPageModule) loadChildren: () => import('./reset-password/reset-password.module').then( m => m.ResetPasswordPageModule)
} }
]; ];
@NgModule({ @NgModule({
imports: [ imports: [
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }) RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
], ],
exports: [RouterModule] exports: [RouterModule]
}) })
export class AppRoutingModule {} export class AppRoutingModule {}
...@@ -38,6 +38,11 @@ export class AppComponent { ...@@ -38,6 +38,11 @@ export class AppComponent {
url: '/ridehistory', url: '/ridehistory',
icon: 'clipboard' icon: 'clipboard'
}, },
{
title: 'Feedback',
url: '/feedback',
icon: 'clipboard'
},
{ {
title: 'Help', title: 'Help',
url: '/help-line', url: '/help-line',
......
...@@ -217,6 +217,7 @@ export class HirebikePage implements OnInit { ...@@ -217,6 +217,7 @@ export class HirebikePage implements OnInit {
let bikeApi = this.httpClient.get(url, { headers }); let bikeApi = this.httpClient.get(url, { headers });
bikeApi.subscribe((resp) => { bikeApi.subscribe((resp) => {
console.log('my data: ', resp); console.log('my data: ', resp);
this.feedbackService.setBikeid(this.bikeDetails.id);
this.loadingService.hideLoader(); this.loadingService.hideLoader();
this.toastService.showToast("Trip Started"); this.toastService.showToast("Trip Started");
this.isBikeHired = true; this.isBikeHired = true;
......
.ride-list-container{ .ride-list-container{
position: relative; position: relative;
overflow-y: scroll;
.bike-list-expander{ .bike-list-expander{
position: absolute; position: absolute;
font-size: 32px; font-size: 32px;
......
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