feat: enhance TrainingPlanningPage with template application functionality
Deploy Development / deploy (push) Successful in 35s
Test Suite / pytest-backend (push) Successful in 6s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Successful in 30s
Deploy Development / deploy (push) Successful in 35s
Test Suite / pytest-backend (push) Successful in 6s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Successful in 30s
- Added a new function to apply selected training templates, improving user experience in the training planning process. - Introduced modal display logic to enhance interaction when applying templates. - Updated the state management to handle template ID selection more effectively.
This commit is contained in:
1 parent
9e759a28c6
commit
9dbd3cbd5f
1 file changed
+5
-1
@@ -507,7 +507,11 @@ function TrainingPlanningPage() {
|
||||
trainer_notes: '',
|
||||
sections: [defaultSection('Hauptteil')],
|
||||
...sessionAssignDefaults()
|
||||
}) = async (templateId) => {
|
||||
})
|
||||
setShowModal(true)
|
||||
}
|
||||
|
||||
const applyTemplateFromSelect = async (templateId) => {
|
||||
setDraftPlanTemplateId(templateId)
|
||||
if (!templateId) return
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user