Zuständigkeit im Frontend anbinden (Karte 04)
Neuer Admin-Tab "Zuständigkeit": Benutzer materialverantwortlich für Standort (vererbt sich auf alle Objekte dort) oder einzelnes Objekt zuordnen, Liste, Entfernen. Backend-Endpunkte (inkl. DELETE) waren bereits vorhanden. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV
This commit is contained in:
@@ -14,6 +14,7 @@ import { ObjektSection } from "./admin/ObjektSection";
|
||||
import { ObjekttypSection } from "./admin/ObjekttypSection";
|
||||
import { StandortSection } from "./admin/StandortSection";
|
||||
import { VorlageSection } from "./admin/VorlageSection";
|
||||
import { ZustaendigkeitSection } from "./admin/ZustaendigkeitSection";
|
||||
|
||||
type Tab =
|
||||
| "objekte"
|
||||
@@ -24,7 +25,8 @@ type Tab =
|
||||
| "benutzer"
|
||||
| "historie"
|
||||
| "eskalation"
|
||||
| "kontrollverantwortung";
|
||||
| "kontrollverantwortung"
|
||||
| "zustaendigkeit";
|
||||
|
||||
const TABS: { key: Tab; label: string }[] = [
|
||||
{ key: "objekte", label: "Objekte" },
|
||||
@@ -33,6 +35,7 @@ const TABS: { key: Tab; label: string }[] = [
|
||||
{ key: "struktur", label: "Struktur" },
|
||||
{ key: "standorte", label: "Standorte" },
|
||||
{ key: "benutzer", label: "Benutzer" },
|
||||
{ key: "zustaendigkeit", label: "Zuständigkeit" },
|
||||
{ key: "kontrollverantwortung", label: "Kontrollverantwortung" },
|
||||
{ key: "historie", label: "Änderungslog" },
|
||||
{ key: "eskalation", label: "Eskalation" },
|
||||
@@ -168,6 +171,9 @@ export function AdminPage() {
|
||||
{tab === "benutzer" && (
|
||||
<BenutzerSection benutzer={benutzer} onGeaendert={ladeAlles} onFehler={setFehler} />
|
||||
)}
|
||||
{tab === "zustaendigkeit" && (
|
||||
<ZustaendigkeitSection standorte={standorte} objekte={objekte} benutzer={benutzer} onFehler={setFehler} />
|
||||
)}
|
||||
{tab === "kontrollverantwortung" && (
|
||||
<KontrollverantwortungSection objekte={objekte} benutzer={benutzer} onFehler={setFehler} />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user