Refactored programData structure with program.workouts array being a simple array of integers. Integers reference workout.ids. program.next property has value of index in program.workouts that is the next workout to do.
Refactored WorkoutButton to work with new program structure. Increment next refactored. BuildProgram refactored to work with creating a new program and editing existing program.
Still no rearranging order of workouts in program.
Fixes #117
Refactored
programData
structure with program.workouts array being a simple array of integers. Integers reference workout.ids.program.next
property has value of index inprogram.workouts
that is the next workout to do.Refactored
WorkoutButton
to work with new program structure. Incrementnext
refactored.BuildProgram
refactored to work with creating a new program and editing existing program.Still no rearranging order of workouts in program.