Harden access control and restore customer admin pages
This commit is contained in:
@@ -26,6 +26,13 @@ const DATASET_LABELS: Record<DatasetKey, string> = {
|
||||
antibiotics: "Antibiogramm",
|
||||
};
|
||||
|
||||
const DATASET_TITLES: Record<DatasetKey, string> = {
|
||||
farmers: "Die Verwaltung der Landwirte",
|
||||
medications: "Die Verwaltung der Medikamente",
|
||||
pathogens: "Die Verwaltung der Erreger",
|
||||
antibiotics: "Die Verwaltung der Antibiogramme",
|
||||
};
|
||||
|
||||
function normalizeOverview(overview: AdministrationOverview): DatasetsState {
|
||||
return {
|
||||
farmers: overview.farmers.map((entry) => ({
|
||||
@@ -216,7 +223,7 @@ export default function AdministrationPage() {
|
||||
<section className="section-card section-card--hero">
|
||||
<div>
|
||||
<p className="eyebrow">Verwaltung</p>
|
||||
<h3>Stammdaten direkt pflegen</h3>
|
||||
<h3>{DATASET_TITLES[selectedDataset]}</h3>
|
||||
<p className="muted-text">
|
||||
Bestehende Datensaetze lassen sich inline aendern. Bei Umbenennungen bleibt der alte
|
||||
Satz inaktiv sichtbar.
|
||||
|
||||
Reference in New Issue
Block a user