feat: add report button for active media items without legal hold
All checks were successful
Deploy Development / deploy (push) Successful in 39s
Test Suite / pytest-backend (push) Successful in 35s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 11s
Test Suite / playwright-tests (push) Successful in 1m1s
All checks were successful
Deploy Development / deploy (push) Successful in 39s
Test Suite / pytest-backend (push) Successful in 35s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 11s
Test Suite / playwright-tests (push) Successful in 1m1s
This commit is contained in:
parent
2f7e1e50ad
commit
0dbcd4175c
|
|
@ -1113,6 +1113,18 @@ export default function MediaLibraryPage() {
|
|||
{preview.original_filename || `Medium #${preview.id}`}
|
||||
</h2>
|
||||
<div className="media-library__preview-head-actions">
|
||||
{(preview.lifecycle_state || 'active') === 'active' && !preview.legal_hold_active && (
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-secondary btn-small"
|
||||
onClick={() => {
|
||||
setReportTarget(preview)
|
||||
setPreview(null)
|
||||
}}
|
||||
>
|
||||
Melden
|
||||
</button>
|
||||
)}
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-secondary btn-small"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user