feat(exercises): bump version to 0.8.65 and enhance club media copyright handling
Deploy Development / deploy (push) Successful in 36s
Test Suite / pytest-backend (push) Successful in 30s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 8s
Test Suite / playwright-tests (push) Successful in 25s
Test Suite / pytest-backend (pull_request) Successful in 23s
Test Suite / lint-backend (pull_request) Successful in 0s
Test Suite / build-frontend (pull_request) Successful in 6s
Test Suite / playwright-tests (pull_request) Successful in 23s
Deploy Development / deploy (push) Successful in 36s
Test Suite / pytest-backend (push) Successful in 30s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 8s
Test Suite / playwright-tests (push) Successful in 25s
Test Suite / pytest-backend (pull_request) Successful in 23s
Test Suite / lint-backend (pull_request) Successful in 0s
Test Suite / build-frontend (pull_request) Successful in 6s
Test Suite / playwright-tests (pull_request) Successful in 23s
- Incremented application version to 0.8.65 and updated changelog with new features. - Added support for setting default copyright notices for club exercises, allowing users to apply a common copyright notice to linked media assets. - Enhanced error handling to prompt users for copyright information when required. - Updated tests to verify the new copyright handling functionality.
This commit is contained in:
1 parent
a7cecca36f
commit
59fb8a5527
4 files changed
+157
-9
No files matched your search
@@ -654,10 +654,23 @@ function ExerciseFormPage() {
|
||||
firstErr.code === 'CLUB_MEDIA_COPYRIGHT_REQUIRED' &&
|
||||
firstErr.payload?.media_assets
|
||||
) {
|
||||
alert(
|
||||
'Vereinsöffentliche Übungen brauchen bei jeder verknüpften Datei einen Copyright-Vermerk (mind. 3 Zeichen). Bitte in der Medienbibliothek oder den Mediendetails nachtragen.',
|
||||
const miss = firstErr.payload.media_assets.length
|
||||
const msg =
|
||||
`Vereinsöffentliche Übungen brauchen bei jeder verknüpften Datei einen Copyright-Vermerk (mind. 3 Zeichen). ` +
|
||||
`${miss} Datei(en) sind noch ohne ausreichenden Vermerk. ` +
|
||||
`Beim Speichern einen gemeinsamen Vermerk für diese Dateien setzen?`
|
||||
if (!window.confirm(msg)) throw firstErr
|
||||
const defaultCopyright = window.prompt(
|
||||
'Copyright-Vermerk für die betroffenen Dateien (mind. 3 Zeichen):',
|
||||
'© ',
|
||||
)
|
||||
throw firstErr
|
||||
if (!defaultCopyright || String(defaultCopyright).trim().length < 3) {
|
||||
alert('Mindestens 3 Zeichen für den Copyright-Vermerk.')
|
||||
throw firstErr
|
||||
}
|
||||
await saveOnce({
|
||||
default_club_media_copyright: String(defaultCopyright).trim(),
|
||||
})
|
||||
} else if (firstErr.status === 422 && firstErr.code === 'CLUB_MEDIA_LIFECYCLE') {
|
||||
alert(
|
||||
'Speichern nicht möglich: mindestens ein verknüpftes Medium ist nicht aktiv (Papierkorb). Bitte reaktivieren oder entfernen.',
|
||||
|
||||
Reference in new issue
Block a user