feat: enhance TrainingPlanningPage with template application functionality
All checks were successful
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
All checks were successful
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:
parent
9e759a28c6
commit
9dbd3cbd5f
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user