There was no way to remove an mhi_gateways row either, alongside the already-fixed device-delete gap — exposed by the same Modbus->MQTT switchover. Adds DELETE /api/mhi-gateways/:id (manage_devices cap) and a 'Delete gateway' button. Devices referencing the gateway are NOT deleted (mhi_gateway_id just goes NULL per the existing ON DELETE SET NULL FK) — the confirm dialog says so and points at the separate device-delete flow for retiring the stale mhi_modbus rows too. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| AuthGate.tsx | ||
| DevicePhotoUpload.tsx | ||
| GatewaysPanel.tsx | ||
| IosInstallHint.tsx | ||
| Layout.tsx | ||
| MhiControlPanel.tsx | ||
| ZoneCard.tsx | ||
| ZoneDetailModal.tsx | ||