Kontrollverantwortung im Frontend anbinden (Karte 01)
Backend: DELETE /kontrollverantwortung/{id} ergänzt (fehlte bisher). Frontend:
neuer Admin-Tab "Kontrollverantwortung" - Objekt + Benutzer/Gruppe zuordnen,
Liste, Entfernen. Reine Sichtbarkeit/Priorisierung, keine Pflichtkontrolle.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV
This commit is contained in:
@@ -8,6 +8,7 @@ import { EskalationSection } from "./admin/EskalationSection";
|
||||
import { FachSection } from "./admin/FachSection";
|
||||
import { HistorieSection } from "./admin/HistorieSection";
|
||||
import { KategorieSection } from "./admin/KategorieSection";
|
||||
import { KontrollverantwortungSection } from "./admin/KontrollverantwortungSection";
|
||||
import { MaterialSection } from "./admin/MaterialSection";
|
||||
import { ObjektSection } from "./admin/ObjektSection";
|
||||
import { ObjekttypSection } from "./admin/ObjekttypSection";
|
||||
@@ -22,7 +23,8 @@ type Tab =
|
||||
| "standorte"
|
||||
| "benutzer"
|
||||
| "historie"
|
||||
| "eskalation";
|
||||
| "eskalation"
|
||||
| "kontrollverantwortung";
|
||||
|
||||
const TABS: { key: Tab; label: string }[] = [
|
||||
{ key: "objekte", label: "Objekte" },
|
||||
@@ -31,6 +33,7 @@ const TABS: { key: Tab; label: string }[] = [
|
||||
{ key: "struktur", label: "Struktur" },
|
||||
{ key: "standorte", label: "Standorte" },
|
||||
{ key: "benutzer", label: "Benutzer" },
|
||||
{ key: "kontrollverantwortung", label: "Kontrollverantwortung" },
|
||||
{ key: "historie", label: "Änderungslog" },
|
||||
{ key: "eskalation", label: "Eskalation" },
|
||||
];
|
||||
@@ -165,6 +168,9 @@ export function AdminPage() {
|
||||
{tab === "benutzer" && (
|
||||
<BenutzerSection benutzer={benutzer} onGeaendert={ladeAlles} onFehler={setFehler} />
|
||||
)}
|
||||
{tab === "kontrollverantwortung" && (
|
||||
<KontrollverantwortungSection objekte={objekte} benutzer={benutzer} onFehler={setFehler} />
|
||||
)}
|
||||
{tab === "historie" && <HistorieSection onFehler={setFehler} />}
|
||||
{tab === "eskalation" && <EskalationSection onFehler={setFehler} />}
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user