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
tx-techno-num
impactometre
Commits
88fd7601
Commit
88fd7601
authored
Jul 05, 2020
by
Matt Glorion
Browse files
[UPD] remove journeys w/o transportation mean
parent
d0ffa319
Changes
1
Hide whitespace changes
Inline
Side-by-side
model/classes/meeting/MeetingScenario.js
View file @
88fd7601
...
...
@@ -29,18 +29,22 @@ class MeetingScenario extends Scenario {
this
.
_meetingDuration
=
meetingDuration
;
this
.
_numberOfParticipants
=
numberOfParticipants
;
const
formattedSoftware
Payload
=
[];
const
formattedSoftware
=
[];
switch
(
software
.
name
.
toUpperCase
())
{
case
''
:
break
;
case
'
OTHER
'
:
formattedSoftware
Payload
.
push
({
name
:
'
SKYPE
'
});
formattedSoftware
.
push
({
name
:
'
SKYPE
'
});
break
;
default
:
formattedSoftware
Payload
.
push
({
name
:
software
.
name
});
formattedSoftware
.
push
({
name
:
software
.
name
});
}
this
.
_damage
=
new
MeetingDamage
(
hardware
,
formattedSoftwarePayload
,
journey
);
const
formattedJourney
=
journey
.
filter
((
journey
)
=>
{
return
journey
.
mean
!==
''
;
});
this
.
_damage
=
new
MeetingDamage
(
hardware
,
formattedSoftware
,
formattedJourney
);
}
// Getters
...
...
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