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
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
custom-apps
web-app
Commits
ff89fe5a
Commit
ff89fe5a
authored
Jan 13, 2021
by
Matthieu Benoist
Browse files
Corrects the feedbackform bad syntax
parent
981bbf71
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/core/components/feedback/feedback.component.ts
View file @
ff89fe5a
...
...
@@ -61,7 +61,10 @@ export class FeedbackComponent implements OnInit {
this
.
feedbackForm
.
get
(
'
email
'
).
valueChanges
.
subscribe
(
(
emailValue
)
=>
{
emailValue
===
''
||
emailValue
===
null
?
consent
.
setValue
(
false
)
:
null
;
if
(
emailValue
===
''
||
emailValue
===
null
)
{
consent
.
setValue
(
false
);
}
if
(
emailValue
!==
null
&&
emailValue
!==
''
)
{
consent
.
setValidators
([
Validators
.
requiredTrue
]);
}
else
{
...
...
@@ -115,7 +118,12 @@ export class FeedbackComponent implements OnInit {
}
get
feedbackHasEmail
()
{
return
this
.
feedbackForm
.
get
(
'
email
'
).
value
&&
this
.
feedbackForm
.
get
(
'
email
'
).
value
;
if
(
this
.
feedbackForm
.
get
(
'
email
'
).
value
!==
null
&&
this
.
feedbackForm
.
get
(
'
email
'
).
value
!==
''
)
{
return
true
;
}
else
{
return
false
;
}
}
get
shouldAnimateClosing
()
{
...
...
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