Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
m
Affluence
Affluence Front
Commits
b7e0c960
Commit
b7e0c960
authored
May 19, 2020
by
Léonard Treille
Browse files
Fix trackEvent error
parent
366159e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/pages/contribution/contribution-final-step/contribution-final-step.component.ts
View file @
b7e0c960
...
...
@@ -87,7 +87,7 @@ export class ContributionFinalStepComponent implements OnInit {
this
.
displaySubmitLoader
=
true
;
this
.
matomoTracker
.
trackEvent
(
'
submit-contribution
'
,
JSON
.
stringify
(
values
));
this
.
http
.
post
(
`
${
domain
}
/occupancy/report`
,
values
,
{
headers
}).
subscribe
(
response
=>
{
this
.
matomoTracker
.
trackEvent
(
'
submit-contribution:success
'
,
''
);
this
.
matomoTracker
.
trackEvent
(
'
submit-contribution:success
'
,
'
true
'
);
this
.
displaySubmitLoader
=
false
;
this
.
snackBar
.
openFromTemplate
(
this
.
snackBarContent
,
{
panelClass
:
'
contribute-submit-message
'
,
...
...
@@ -95,7 +95,7 @@ export class ContributionFinalStepComponent implements OnInit {
});
this
.
router
.
navigate
([
'
/
'
]);
},
error
=>
{
this
.
matomoTracker
.
trackEvent
(
'
submit-contribution:error
'
,
''
);
this
.
matomoTracker
.
trackEvent
(
'
submit-contribution:error
'
,
'
false
'
);
console
.
error
(
error
);
this
.
displaySubmitLoader
=
false
;
this
.
snackBar
.
open
(
`Une erreur s'est produite, veuillez réessayer plus tard.`
,
''
,
{
...
...
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