wt1.1.2e NumberPicker
This commit is contained in:
@@ -134,15 +134,16 @@ class ExercisePlanRepository {
|
||||
.deleteExercisePlanDetail(exercisePlanDetail.exercisePlanDetailId);
|
||||
exercisePlanDetail.change = ExercisePlanDetailChange.deleted;
|
||||
Cache().deletedMyExercisePlanDetail(exercisePlanDetail);
|
||||
|
||||
} else if ( exercisePlanDetail.change == ExercisePlanDetailChange.update ) {
|
||||
await ExercisePlanApi()
|
||||
.updateExercisePlanDetail(exercisePlanDetail, exercisePlanDetail.exercisePlanDetailId);
|
||||
Cache().updateMyExercisePlanDetail(exercisePlanDetail);
|
||||
exercisePlanDetail.change = ExercisePlanDetailChange.saved;
|
||||
} else if ( exercisePlanDetail.change == ExercisePlanDetailChange.add ) {
|
||||
await ExercisePlanApi()
|
||||
.saveExercisePlanDetail(exercisePlanDetail);
|
||||
Cache().addToMyExercisePlanDetails(exercisePlanDetail);
|
||||
exercisePlanDetail.change = ExercisePlanDetailChange.saved;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -74,6 +74,10 @@ class ExerciseRepository {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> deleteExercise(Exercise exercise) async {
|
||||
await ExerciseApi().deleteExercise(exercise);
|
||||
}
|
||||
|
||||
|
||||
setCustomer(Customer customer) => this.customer = customer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user