+
+
+ Client-Übersicht
+
{groups.length > 0 ? (
@@ -190,7 +163,7 @@ const Clients: React.FC = () => {
toolbar={['Search', 'Edit', 'Update', 'Cancel']}
allowSorting={true}
allowFiltering={true}
- height={400}
+ height={420}
editSettings={{
allowEditing: true,
allowAdding: false,
@@ -228,17 +201,17 @@ const Clients: React.FC = () => {
width="140"
/>
-
+
-
+
{
- setDetailsClient(null)}
- />
>
) : (
- Raumgruppen werden geladen ...
+ Raumgruppen werden geladen ...
)}
- {/* DialogComponent für Bestätigung */}
+
+ {/* Details-Dialog */}
+ {detailsClient && (
+ setDetailsClient(null)}
+ footerTemplate={() => (
+
+ setDetailsClient(null)}>{'Schließen'}
+
+ )}
+ >
+
+
+ )}
+
+ {/* Bestätigungs-Dialog für Löschen */}
{showDialog && deleteClientId && (
{
content="Möchten Sie diesen Client wirklich entfernen?"
showCloseIcon={true}
width="400px"
+ target="#dialog-target"
buttons={[
{ click: confirmDelete, buttonModel: { content: 'Ja', isPrimary: true } },
{ click: cancelDelete, buttonModel: { content: 'Abbrechen' } },
diff --git a/dashboard/src/components/SetupModeButton.tsx b/dashboard/src/components/SetupModeButton.tsx
index b254cb3..7c84e58 100644
--- a/dashboard/src/components/SetupModeButton.tsx
+++ b/dashboard/src/components/SetupModeButton.tsx
@@ -1,18 +1,21 @@
import React from 'react';
import { useNavigate } from 'react-router-dom';
import { Wrench } from 'lucide-react';
+import { ButtonComponent } from '@syncfusion/ej2-react-buttons';
const SetupModeButton: React.FC = () => {
const navigate = useNavigate();
return (
-
+
+
+ Erweiterungsmodus
+
+
);
};
diff --git a/dashboard/src/dashboard.tsx b/dashboard/src/dashboard.tsx
index 0e820a6..379349f 100644
--- a/dashboard/src/dashboard.tsx
+++ b/dashboard/src/dashboard.tsx
@@ -171,10 +171,12 @@ const Dashboard: React.FC = () => {
return (
-
- Dashboard
+
- Raumgruppen Übersicht
+
+ Raumgruppen Übersicht
+
{
return (
-
{de.title}
+
{de.title}