Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcarfixers_angular
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
16
Issues
16
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tobin
dcarfixers_angular
Commits
b2e6ee2e
Commit
b2e6ee2e
authored
Apr 11, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jensa' into 'master'
Jensa See merge request
!26
parents
81a483d0
fab431ee
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
dashboard.component.html
src/app/home/dashboard/dashboard.component.html
+0
-0
dashboard.component.ts
src/app/home/dashboard/dashboard.component.ts
+14
-4
No files found.
src/app/home/dashboard/dashboard.component.html
View file @
b2e6ee2e
This diff is collapsed.
Click to expand it.
src/app/home/dashboard/dashboard.component.ts
View file @
b2e6ee2e
...
...
@@ -205,20 +205,30 @@ export class DashboardComponent implements OnInit {
this
.
loader
=
true
;
this
.
webService
.
post_data
(
'getCustBookDetails'
,
{
'customer_id'
:
this
.
loginDetails
.
customer_id
}).
subscribe
(
response
=>
{
if
(
response
.
status
==
'1'
&&
response
.
bookData
!=
'undefined'
&&
response
.
bookData
!=
undefined
&&
response
.
bookData
!=
'null'
&&
response
.
bookData
!=
null
)
{
this
.
bookingDetail
s
=
response
.
bookData
;
let
booking
s
=
response
.
bookData
;
let
successBooking
:
any
[]
=
new
Array
();
let
bookingDetails
:
any
[]
=
new
Array
();
this
.
bookingDetails
.
forEach
(
function
(
booking
)
{
if
(
booking
.
status
==
1
){
successBooking
.
push
(
booking
);
bookings
.
forEach
(
function
(
book
)
{
if
(
book
.
status
==
0
||
book
.
status
==
1
||
book
.
status
==
6
){
successBooking
.
push
(
book
);
}
else
{
bookingDetails
.
push
(
book
);
}
});
if
(
successBooking
.
length
>
0
){
this
.
successBookDtls
=
successBooking
;
}
else
{
this
.
successBookDtls
=
false
;
}
if
(
bookingDetails
.
length
>
0
){
this
.
bookingDetails
=
bookingDetails
;
}
else
{
this
.
bookingDetails
=
false
;
}
}
this
.
loader
=
false
;
});
...
...
Write
Preview
Markdown
is supported
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