diff --git a/CHANGELOG.md b/CHANGELOG.md index 03cb8ba..db4aa5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Dark mode - Descriptions of measuring points on body fat page - Archiving of routines +- Button for saving changes during guided training session ### Changed diff --git a/frontend/src/page/training_session.rs b/frontend/src/page/training_session.rs index 59dfaf5..da2c3da 100644 --- a/frontend/src/page/training_session.rs +++ b/frontend/src/page/training_session.rs @@ -2316,22 +2316,19 @@ fn view_training_session_form(model: &Model, data_model: &data::Model) -> Vec - button![ - C!["button"], - C!["is-fab"], - C!["is-medium"], - C!["is-link"], - C![IF![not(valid) => "is-danger"]], - C![IF![model.loading => "is-loading"]], - attrs![ - At::Disabled => save_disabled.as_at_value(), - ], - ev(Ev::Click, |_| Msg::SaveTrainingSession), - span![C!["icon"], i![C!["fas fa-save"]]] - ] - ], + button![ + C!["button"], + C!["is-fab"], + C!["is-medium"], + C!["is-link"], + C![IF![not(valid) => "is-danger"]], + C![IF![model.loading => "is-loading"]], + attrs![ + At::Disabled => save_disabled.as_at_value(), + ], + ev(Ev::Click, |_| Msg::SaveTrainingSession), + span![C!["icon"], i![C!["fas fa-save"]]] + ] ] }