Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
backup
Drip
Commits
be0b9ba0
Commit
be0b9ba0
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Rename showView callback
parent
5041a455
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bleeding.js
+4
-4
4 additions, 4 deletions
bleeding.js
cycle-day-overview.js
+3
-3
3 additions, 3 deletions
cycle-day-overview.js
cycle-day.js
+4
-4
4 additions, 4 deletions
cycle-day.js
temperature.js
+4
-4
4 additions, 4 deletions
temperature.js
with
15 additions
and
15 deletions
bleeding.js
+
4
−
4
View file @
be0b9ba0
...
@@ -14,7 +14,7 @@ export default class Bleeding extends Component {
...
@@ -14,7 +14,7 @@ export default class Bleeding extends Component {
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
)
super
(
props
)
this
.
cycleDay
=
props
.
cycleDay
this
.
cycleDay
=
props
.
cycleDay
this
.
bringInto
View
=
props
.
bringIntoView
this
.
show
View
=
props
.
bringIntoView
let
bleedingValue
=
this
.
cycleDay
.
bleeding
&&
this
.
cycleDay
.
bleeding
.
value
let
bleedingValue
=
this
.
cycleDay
.
bleeding
&&
this
.
cycleDay
.
bleeding
.
value
if
(
!
(
typeof
bleedingValue
===
'
number
'
)
){
if
(
!
(
typeof
bleedingValue
===
'
number
'
)
){
bleedingValue
=
-
1
bleedingValue
=
-
1
...
@@ -51,13 +51,13 @@ export default class Bleeding extends Component {
...
@@ -51,13 +51,13 @@ export default class Bleeding extends Component {
}}
}}
value
=
{
this
.
state
.
exclude
}
/
>
value
=
{
this
.
state
.
exclude
}
/
>
<
Button
<
Button
onPress
=
{()
=>
this
.
bringInto
View
(
'
dayView
'
)}
onPress
=
{()
=>
this
.
show
View
(
'
dayView
'
)}
title
=
"
Cancel
"
>
title
=
"
Cancel
"
>
<
/Button
>
<
/Button
>
<
Button
<
Button
onPress
=
{()
=>
{
onPress
=
{()
=>
{
saveBleeding
(
this
.
cycleDay
)
saveBleeding
(
this
.
cycleDay
)
this
.
bringInto
View
(
'
dayView
'
)
this
.
show
View
(
'
dayView
'
)
}}
}}
title
=
"
Delete entry
"
>
title
=
"
Delete entry
"
>
<
/Button
>
<
/Button
>
...
@@ -67,7 +67,7 @@ export default class Bleeding extends Component {
...
@@ -67,7 +67,7 @@ export default class Bleeding extends Component {
value
:
this
.
state
.
currentValue
,
value
:
this
.
state
.
currentValue
,
exclude
:
this
.
state
.
exclude
exclude
:
this
.
state
.
exclude
})
})
this
.
bringInto
View
(
'
dayView
'
)
this
.
show
View
(
'
dayView
'
)
}}
}}
disabled
=
{
this
.
state
.
currentValue
===
-
1
}
disabled
=
{
this
.
state
.
currentValue
===
-
1
}
title
=
"
Save
"
>
title
=
"
Save
"
>
...
...
This diff is collapsed.
Click to expand it.
cycle-day-overview.js
+
3
−
3
View file @
be0b9ba0
...
@@ -15,7 +15,7 @@ export default class DayView extends Component {
...
@@ -15,7 +15,7 @@ export default class DayView extends Component {
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
)
super
(
props
)
this
.
cycleDay
=
props
.
cycleDay
this
.
cycleDay
=
props
.
cycleDay
this
.
bringInto
View
=
props
.
bringIntoView
this
.
show
View
=
props
.
bringIntoView
bleedingDaysSortedByDate
.
addListener
(
setStateWithCurrentCycleDayNumber
.
bind
(
this
))
bleedingDaysSortedByDate
.
addListener
(
setStateWithCurrentCycleDayNumber
.
bind
(
this
))
}
}
...
@@ -46,11 +46,11 @@ export default class DayView extends Component {
...
@@ -46,11 +46,11 @@ export default class DayView extends Component {
<
Text
style
=
{
styles
.
welcome
}
>
{
bleedingLabel
}
<
/Text
>
<
Text
style
=
{
styles
.
welcome
}
>
{
bleedingLabel
}
<
/Text
>
<
Text
style
=
{
styles
.
welcome
}
>
{
temperatureLabel
}
<
/Text
>
<
Text
style
=
{
styles
.
welcome
}
>
{
temperatureLabel
}
<
/Text
>
<
Button
<
Button
onPress
=
{()
=>
this
.
bringInto
View
(
'
bleedingEditView
'
)}
onPress
=
{()
=>
this
.
show
View
(
'
bleedingEditView
'
)}
title
=
"
Edit bleeding
"
>
title
=
"
Edit bleeding
"
>
<
/Button
>
<
/Button
>
<
Button
<
Button
onPress
=
{()
=>
this
.
bringInto
View
(
'
temperatureEditView
'
)}
onPress
=
{()
=>
this
.
show
View
(
'
temperatureEditView
'
)}
title
=
"
Edit temperature
"
>
title
=
"
Edit temperature
"
>
<
/Button
>
<
/Button
>
<
/View
>
<
/View
>
...
...
This diff is collapsed.
Click to expand it.
cycle-day.js
+
4
−
4
View file @
be0b9ba0
...
@@ -22,7 +22,7 @@ export default class Day extends Component {
...
@@ -22,7 +22,7 @@ export default class Day extends Component {
visibleComponent
:
'
dayView
'
,
visibleComponent
:
'
dayView
'
,
}
}
this
.
bringInto
View
=
view
=>
{
this
.
show
View
=
view
=>
{
this
.
setState
({
visibleComponent
:
view
})
this
.
setState
({
visibleComponent
:
view
})
}
}
}
}
...
@@ -33,9 +33,9 @@ export default class Day extends Component {
...
@@ -33,9 +33,9 @@ export default class Day extends Component {
<
Text
style
=
{
styles
.
welcome
}
>
{
formatDateForViewHeader
(
this
.
cycleDay
.
date
)}
<
/Text
>
<
Text
style
=
{
styles
.
welcome
}
>
{
formatDateForViewHeader
(
this
.
cycleDay
.
date
)}
<
/Text
>
{
this
.
cycleDayNumber
&&
<
Text
>
Cycle
day
{
this
.
cycleDayNumber
}
<
/Text>
}
{
this
.
cycleDayNumber
&&
<
Text
>
Cycle
day
{
this
.
cycleDayNumber
}
<
/Text>
}
{
{
{
dayView
:
<
DayView
cycleDay
=
{
this
.
cycleDay
}
bringIntoView
=
{
this
.
bringInto
View
}
/>
,
{
dayView
:
<
DayView
cycleDay
=
{
this
.
cycleDay
}
bringIntoView
=
{
this
.
show
View
}
/>
,
bleedingEditView
:
<
BleedingEditView
cycleDay
=
{
this
.
cycleDay
}
bringIntoView
=
{
this
.
bringInto
View
}
/>
,
bleedingEditView
:
<
BleedingEditView
cycleDay
=
{
this
.
cycleDay
}
bringIntoView
=
{
this
.
show
View
}
/>
,
temperatureEditView
:
<
TemperatureEditView
cycleDay
=
{
this
.
cycleDay
}
bringIntoView
=
{
this
.
bringInto
View
}
/
>
temperatureEditView
:
<
TemperatureEditView
cycleDay
=
{
this
.
cycleDay
}
bringIntoView
=
{
this
.
show
View
}
/
>
}[
this
.
state
.
visibleComponent
]
}[
this
.
state
.
visibleComponent
]
}
}
...
...
This diff is collapsed.
Click to expand it.
temperature.js
+
4
−
4
View file @
be0b9ba0
...
@@ -13,7 +13,7 @@ export default class Temp extends Component {
...
@@ -13,7 +13,7 @@ export default class Temp extends Component {
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
)
super
(
props
)
this
.
cycleDay
=
props
.
cycleDay
this
.
cycleDay
=
props
.
cycleDay
this
.
bringInto
View
=
props
.
bringIntoView
this
.
show
View
=
props
.
bringIntoView
let
initialValue
let
initialValue
if
(
this
.
cycleDay
.
temperature
)
{
if
(
this
.
cycleDay
.
temperature
)
{
...
@@ -51,14 +51,14 @@ export default class Temp extends Component {
...
@@ -51,14 +51,14 @@ export default class Temp extends Component {
/
>
/
>
<
Button
<
Button
onPress
=
{()
=>
{
onPress
=
{()
=>
{
this
.
bringInto
View
(
'
dayView
'
)
this
.
show
View
(
'
dayView
'
)
}}
}}
title
=
"
Cancel
"
>
title
=
"
Cancel
"
>
<
/Button
>
<
/Button
>
<
Button
<
Button
onPress
=
{()
=>
{
onPress
=
{()
=>
{
saveTemperature
(
cycleDay
)
saveTemperature
(
cycleDay
)
this
.
bringInto
View
(
'
dayView
'
)
this
.
show
View
(
'
dayView
'
)
}}
}}
title
=
"
Delete entry
"
>
title
=
"
Delete entry
"
>
<
/Button
>
<
/Button
>
...
@@ -68,7 +68,7 @@ export default class Temp extends Component {
...
@@ -68,7 +68,7 @@ export default class Temp extends Component {
value
:
Number
(
this
.
state
.
currentValue
),
value
:
Number
(
this
.
state
.
currentValue
),
exclude
:
this
.
state
.
exclude
exclude
:
this
.
state
.
exclude
})
})
this
.
bringInto
View
(
'
dayView
'
)
this
.
show
View
(
'
dayView
'
)
}}
}}
disabled
=
{
this
.
state
.
currentValue
===
''
}
disabled
=
{
this
.
state
.
currentValue
===
''
}
title
=
"
Save
"
>
title
=
"
Save
"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment