Projektarten: Art beim Zuweisen und nach Repo-Anlage
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8653756935
commit
c16049d266
4 files changed
+92
-9
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { useState, useEffect, useMemo } from 'react'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
import {
|
||||
FaFolder,
|
||||
FaPlus,
|
||||
@@ -88,6 +89,7 @@ function isProjectReady(project) {
|
||||
}
|
||||
|
||||
export default function ProjectsPage() {
|
||||
const navigate = useNavigate()
|
||||
const { projects, loading, error, fetchAllProjects, assignProjects, unassignProject } = useWebsiteProjects()
|
||||
const { customers } = useCustomers()
|
||||
const { workorders } = useWorkorders(WORKORDER_FILTERS)
|
||||
@@ -223,6 +225,8 @@ export default function ProjectsPage() {
|
||||
: 'Projekt (ohne Website) angelegt.'
|
||||
)
|
||||
await fetchAllProjects()
|
||||
// Direkt zur Art-/Kunden-Zuordnung des neuen Repos
|
||||
if (result.projectId) navigate(`/projects/zuordnen/${result.projectId}`)
|
||||
} catch (err) {
|
||||
setCreateError(err.message || 'Projekt konnte nicht angelegt werden')
|
||||
} finally {
|
||||
|
||||
Reference in new issue
Block a user