diff --git a/src/App.js b/src/App.js index 4005acd..d12c500 100644 --- a/src/App.js +++ b/src/App.js @@ -1354,7 +1354,7 @@ function App() {

{session.profile.name}

Profil-ID: {session.profile.id}

-
+
+ + {notificationLoading && Lade…}
@@ -1435,40 +1459,19 @@ function App() { )} + {notificationPanelOpen && (
-
-
-
-

Benachrichtigungen

-

- Erhalte Hinweise über ntfy oder Telegram, sobald Slots gefunden oder gebucht wurden. -

-
- -
- {notificationLoading && Lade Einstellungen…} -
{notificationError && ( -
+
{notificationError}
)} {notificationMessage && ( -
+
{notificationMessage}
)} -
+
@@ -1505,24 +1508,16 @@ function App() { disabled={!notificationSettings.ntfy.enabled} />
-
- - handleNotificationFieldChange('ntfy', 'serverUrl', e.target.value)} - placeholder={notificationCapabilities.ntfy.serverUrl || 'https://ntfy.sh'} - className="border rounded p-2 w-full focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500" - disabled={!notificationSettings.ntfy.enabled} - /> - {notificationCapabilities.ntfy.topicPrefix && ( -

- Vom Admin vorgegebenes Präfix: {notificationCapabilities.ntfy.topicPrefix} -

- )} -
+ {notificationCapabilities.ntfy.serverUrl && ( +

+ Server: {notificationCapabilities.ntfy.serverUrl} (vom Admin festgelegt) +

+ )} + {notificationCapabilities.ntfy.topicPrefix && ( +

+ Präfix: {notificationCapabilities.ntfy.topicPrefix} (Bindestrich wird automatisch ergänzt) +

+ )}
- - {!notificationPanelOpen && ( -
- Benachrichtigungen sind aktuell {notificationSettings.ntfy.enabled || notificationSettings.telegram.enabled ? 'aktiviert' : 'deaktiviert'}. Klicke auf das Zahnrad, um Details anzuzeigen. -
- )} - } -
+ )}