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
PAMN_Plateforme des acteurs de la mediation numerique
RAM_Client
Commits
bd4bba84
Commit
bd4bba84
authored
May 19, 2021
by
Hugo SUBTIL
Browse files
fix: remove console.log + clean code
parent
1fdc33f2
Pipeline
#14137
passed with stage
in 4 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/shared/components/hour-picker/hour-picker.component.ts
View file @
bd4bba84
...
...
@@ -20,7 +20,7 @@ export class HourPickerComponent implements OnChanges, OnDestroy {
public
error
=
false
;
private
copiedDay
:
any
;
private
isInputSelec
e
ted
=
false
;
private
isInputSelected
=
false
;
public
copiedDayName
=
''
;
public
structure
=
{
hours
:
this
.
initHoursDefault
(),
...
...
@@ -283,17 +283,16 @@ export class HourPickerComponent implements OnChanges, OnDestroy {
}
public
onFocus
():
void
{
this
.
isInputSelec
e
ted
=
true
;
this
.
isInputSelected
=
true
;
}
public
onBlur
():
void
{
this
.
isInputSelec
e
ted
=
false
;
this
.
isInputSelected
=
false
;
this
.
submitForm
();
}
public
submitForm
():
void
{
console
.
log
(
'
submit ?
'
,
this
.
isInputSeleceted
);
if
(
this
.
checkHoursValid
()
&&
this
.
isInputSeleceted
===
false
)
{
if
(
this
.
checkHoursValid
()
&&
this
.
isInputSelected
===
false
)
{
this
.
updateForm
.
emit
(
this
.
parseHoursToForm
());
}
else
{
this
.
updateFormError
.
emit
();
...
...
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