Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hdastageeri
hft_awado_app
Commits
e491395d
Commit
e491395d
authored
Dec 16, 2019
by
gap95
Browse files
scrolling added in ride history
parent
96705627
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/app/app-routing.module.ts
View file @
e491395d
import
{
NgModule
}
from
'
@angular/core
'
;
import
{
PreloadAllModules
,
RouterModule
,
Routes
}
from
'
@angular/router
'
;
const
routes
:
Routes
=
[
{
path
:
''
,
redirectTo
:
'
login
'
,
pathMatch
:
'
full
'
},
{
path
:
'
home
'
,
loadChildren
:
()
=>
import
(
'
./home/home.module
'
).
then
(
m
=>
m
.
HomePageModule
)
},
{
path
:
'
list
'
,
loadChildren
:
()
=>
import
(
'
./list/list.module
'
).
then
(
m
=>
m
.
ListPageModule
)
},
{
path
:
'
login
'
,
loadChildren
:
()
=>
import
(
'
./auth/login/login.module
'
).
then
(
m
=>
m
.
LoginPageModule
)
},
{
path
:
'
register
'
,
loadChildren
:
()
=>
import
(
'
./auth/register/register.module
'
).
then
(
m
=>
m
.
RegisterPageModule
)
},
{
import
{
NgModule
}
from
'
@angular/core
'
;
import
{
PreloadAllModules
,
RouterModule
,
Routes
}
from
'
@angular/router
'
;
const
routes
:
Routes
=
[
{
path
:
''
,
redirectTo
:
'
login
'
,
pathMatch
:
'
full
'
},
{
path
:
'
home
'
,
loadChildren
:
()
=>
import
(
'
./home/home.module
'
).
then
(
m
=>
m
.
HomePageModule
)
},
{
path
:
'
list
'
,
loadChildren
:
()
=>
import
(
'
./list/list.module
'
).
then
(
m
=>
m
.
ListPageModule
)
},
{
path
:
'
login
'
,
loadChildren
:
()
=>
import
(
'
./auth/login/login.module
'
).
then
(
m
=>
m
.
LoginPageModule
)
},
{
path
:
'
register
'
,
loadChildren
:
()
=>
import
(
'
./auth/register/register.module
'
).
then
(
m
=>
m
.
RegisterPageModule
)
},
{
path
:
'
myreservation
'
,
loadChildren
:
()
=>
import
(
'
./myreservation/myreservation.module
'
).
then
(
m
=>
m
.
MyreservationPageModule
)
},
...
...
@@ -34,6 +35,10 @@ const routes: Routes = [
path
:
'
ridehistory
'
,
loadChildren
:
()
=>
import
(
'
./ridehistory/ridehistory.module
'
).
then
(
m
=>
m
.
RidehistoryPageModule
)
},
{
path
:
'
feedback
'
,
loadChildren
:
()
=>
import
(
'
./feedback/feedback.module
'
).
then
(
m
=>
m
.
FeedbackPageModule
)
},
{
path
:
'
help-line
'
,
loadChildren
:
()
=>
import
(
'
./help-line/help-line.module
'
).
then
(
m
=>
m
.
HelpLinePageModule
)
...
...
@@ -43,14 +48,14 @@ const routes: Routes = [
loadChildren
:
()
=>
import
(
'
./reset-password/reset-password.module
'
).
then
(
m
=>
m
.
ResetPasswordPageModule
)
}
];
@
NgModule
({
imports
:
[
RouterModule
.
forRoot
(
routes
,
{
preloadingStrategy
:
PreloadAllModules
})
],
exports
:
[
RouterModule
]
})
export
class
AppRoutingModule
{}
];
@
NgModule
({
imports
:
[
RouterModule
.
forRoot
(
routes
,
{
preloadingStrategy
:
PreloadAllModules
})
],
exports
:
[
RouterModule
]
})
export
class
AppRoutingModule
{}
src/app/app.component.ts
View file @
e491395d
...
...
@@ -38,6 +38,11 @@ export class AppComponent {
url
:
'
/ridehistory
'
,
icon
:
'
clipboard
'
},
{
title
:
'
Feedback
'
,
url
:
'
/feedback
'
,
icon
:
'
clipboard
'
},
{
title
:
'
Help
'
,
url
:
'
/help-line
'
,
...
...
src/app/hirebike/hirebike.page.ts
View file @
e491395d
...
...
@@ -217,6 +217,7 @@ export class HirebikePage implements OnInit {
let
bikeApi
=
this
.
httpClient
.
get
(
url
,
{
headers
});
bikeApi
.
subscribe
((
resp
)
=>
{
console
.
log
(
'
my data:
'
,
resp
);
this
.
feedbackService
.
setBikeid
(
this
.
bikeDetails
.
id
);
this
.
loadingService
.
hideLoader
();
this
.
toastService
.
showToast
(
"
Trip Started
"
);
this
.
isBikeHired
=
true
;
...
...
src/app/ridehistory/ridehistory.page.scss
View file @
e491395d
.ride-list-container
{
position
:
relative
;
overflow-y
:
scroll
;
.bike-list-expander
{
position
:
absolute
;
font-size
:
32px
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment