Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
eCOM-RICM5-MyTransport
MyTransport
Commits
8dd35a1a
Commit
8dd35a1a
authored
Dec 18, 2018
by
Julien
Browse files
try to fix
parent
7b90ad82
Pipeline
#17295
failed with stages
in 1 minute and 41 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/app/manager/taxi-management/selector/lists/late/late.component.ts
View file @
8dd35a1a
import
{
Component
,
OnInit
,
HostListener
}
from
'
@angular/core
'
;
import
*
as
moment
from
'
moment
'
;
import
{
Moment
}
from
'
moment
'
;
//
import { Moment } from 'moment';
import
{
ICourse
}
from
'
app/shared/model/course.model
'
;
import
{
CourseService
}
from
'
app/entities/course/course.service
'
;
...
...
@@ -38,7 +38,7 @@ export class SelectorListLateComponent implements OnInit {
this
.
courseService
.
queryLate
().
subscribe
(
courses
=>
(
this
.
courses
=
courses
.
body
));
}
calcLate
(
expected
:
Moment
)
{
calcLate
(
expected
:
moment
.
Moment
)
{
const
now
=
moment
();
this
.
late
=
moment
.
duration
(
now
.
diff
(
expected
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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