Fix missing config handling and auto-restart after setup

This commit is contained in:
Mikhail Chusavitin
2026-02-04 10:19:35 +03:00
parent fabd30650d
commit 7c606af2bb
3 changed files with 17 additions and 5 deletions

View File

@@ -203,10 +203,11 @@ func (h *SetupHandler) SaveConnection(c *gin.Context) {
}
// Always restart to properly initialize all services with the new connection
restartRequired := h.restartSig == nil
c.JSON(http.StatusOK, gin.H{
"success": true,
"message": "Settings saved. Please restart the application to apply changes.",
"restart_required": true,
"message": "Settings saved.",
"restart_required": restartRequired,
})
// Signal restart after response is sent (if restart signal is configured)