feat: integrate ProjectFileManager into project detail page
Replace the file management placeholder with the actual ProjectFileManager component, providing projectId, projectNumber, hasPermission, and hasNasFolder props from the existing page state. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,7 @@ import Forbidden from '../components/Forbidden'
|
|||||||
import ConfirmModal from '../components/ConfirmModal'
|
import ConfirmModal from '../components/ConfirmModal'
|
||||||
import FormField from '../components/FormField'
|
import FormField from '../components/FormField'
|
||||||
import AdminDatePicker from '../components/AdminDatePicker'
|
import AdminDatePicker from '../components/AdminDatePicker'
|
||||||
|
import ProjectFileManager from '../components/ProjectFileManager'
|
||||||
import apiFetch from '../utils/api'
|
import apiFetch from '../utils/api'
|
||||||
|
|
||||||
const API_BASE = '/api/admin'
|
const API_BASE = '/api/admin'
|
||||||
@@ -559,20 +560,18 @@ export default function ProjectDetail() {
|
|||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|
||||||
{/* Files placeholder - ProjectFileManager not yet migrated */}
|
{/* Project File Manager */}
|
||||||
<motion.div
|
<motion.div
|
||||||
className="admin-card"
|
|
||||||
style={{ marginBottom: '1rem' }}
|
|
||||||
initial={{ opacity: 0, y: 12 }}
|
initial={{ opacity: 0, y: 12 }}
|
||||||
animate={{ opacity: 1, y: 0 }}
|
animate={{ opacity: 1, y: 0 }}
|
||||||
transition={{ duration: 0.25, delay: 0.12 }}
|
transition={{ duration: 0.25, delay: 0.12 }}
|
||||||
>
|
>
|
||||||
<div className="admin-card-body">
|
<ProjectFileManager
|
||||||
<h3 className="admin-card-title">Soubory</h3>
|
projectId={project.id}
|
||||||
<p style={{ color: 'var(--text-tertiary)', fontSize: '0.875rem' }}>
|
projectNumber={project.project_number}
|
||||||
Správa souborů projektu bude dostupná v příští verzi.
|
hasPermission={hasPermission}
|
||||||
</p>
|
hasNasFolder={project.has_nas_folder ?? false}
|
||||||
</div>
|
/>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|
||||||
{/* Links */}
|
{/* Links */}
|
||||||
|
|||||||
Reference in New Issue
Block a user