= e((string) ($appEntry['name'] ?? 'App')) ?>
= e((string) ($appEntry['description'] ?? ($appEntry['app_url'] ?? ''))) ?>
listIntegrationsForOwner($ownerKey); if ($_SERVER['REQUEST_METHOD'] === 'POST') { $action = trim((string) ($_POST['action'] ?? '')); try { if ($action === 'create_app') { $service->createApp($ownerKey, [ 'name' => trim((string) ($_POST['name'] ?? '')), 'description' => trim((string) ($_POST['description'] ?? '')), 'app_url' => trim((string) ($_POST['app_url'] ?? '')), 'icon_url' => trim((string) ($_POST['icon_url'] ?? '')), 'integration_id' => (int) ($_POST['integration_id'] ?? 0), 'visibility' => 'public', ]); $notice = 'App gespeichert.'; } elseif ($action === 'delete_app') { $service->deleteApp((int) ($_POST['app_id'] ?? 0), $ownerKey); $notice = 'App gelöscht.'; } } catch (\Throwable $exception) { $error = $exception->getMessage(); } } $apps = $service->listApps($ownerKey, true); $GLOBALS['layout_header_base_title'] = 'Nexus Setup'; $GLOBALS['layout_header_title'] = 'Nexus Setup'; $GLOBALS['layout_header_context'] = 'Apps'; $GLOBALS['layout_header_text'] = 'Globale Apps, die Nutzer später ihren Dashboards hinzufügen können.'; ?>
= e((string) ($appEntry['description'] ?? ($appEntry['app_url'] ?? ''))) ?>