[Pharo] Personal fitness tracker web app.
Weights and Workouts tabs.
Changed files
src/MyFitnessTracker/MFTWeightsListTab.class.st
@@ -23,7 +23,7 @@
23
23
MFTWeightsListTab >> initialize [
24
24
25
25
super initialize.
26
Removed:
title := 'Weight'.
26
Added:
title := 'weight'.
27
27
weights := OrderedCollection new
28
28
]
29
29
src/MyFitnessTracker/MFTWorkoutsListTab.class.st
@@ -82,9 +82,7 @@
82
82
83
83
| newWorkout |
84
84
newWorkout := self call: MFTWorkoutDialog new.
85
Removed:
newWorkout ifNotNil: [
86
Removed:
workouts addFirst: newWorkout.
87
Removed:
MFTUser ifRegistered: [ MFTDatabase saveWorkout: newWorkout ] ]
85
Added:
newWorkout ifNotNil: [ workouts addFirst: newWorkout ]
88
86
]
89
87
90
88
{ #category : #hooks }
@@ -115,7 +113,7 @@
115
113
MFTWorkoutsListTab >> initialize [
116
114
117
115
super initialize.
118
Removed:
title := 'Workouts'.
116
Added:
title := 'workouts'.
119
117
workouts := OrderedCollection new
120
118
]
121
119
@@ -130,7 +128,7 @@
130
128
]
131
129
132
130
{ #category : #rendering }
133
Removed:
MFTWorkoutsListTab >> renderActionsButtonGroup: html [
131
Added:
MFTWorkoutsListTab >> renderActionsButtonGroupOn: html [
134
132
135
133
html form: [
136
134
html buttonGroup: [
@@ -147,7 +145,7 @@
147
145
html container: [
148
146
workouts ifEmpty: [
149
147
html jumbotron: [ html heading: self randomWittyCTA ] ].
150
Removed:
self renderActionsButtonGroup: html.
148
Added:
self renderActionsButtonGroupOn: html.
151
149
self renderWorkoutsAsAccordionOn: html ]
152
150
]
153
151