[Pharo] Personal fitness tracker web app.
Workout form submission confirmation.
src/MyFitnessTracker/MFTWorkoutForm.class.st
@@ -37,8 +37,9 @@
37
37
MFTWorkoutForm >> submitForm [
38
38
39
39
modelObject setGroups ifEmpty: [
40
Removed:
(self call: MFTConfirmForm new emptySetGroups) ifFalse: [
41
Removed:
self answer: nil ] ].
40
Added:
(self call:
41
Added:
(MFTConfirmForm new modelObject: 'No exercises were specified.'))
42
Added:
ifFalse: [ self answer: nil ] ].
42
43
43
44
self answer: modelObject
44
45
]