diff --git a/frontend/src/components/common/SettingsModal.vue b/frontend/src/components/common/SettingsModal.vue index f487f4e..e309797 100644 --- a/frontend/src/components/common/SettingsModal.vue +++ b/frontend/src/components/common/SettingsModal.vue @@ -269,6 +269,7 @@ diff --git a/internal/connections/service.go b/internal/connections/service.go index 5ca5f23..b1f7cf8 100644 --- a/internal/connections/service.go +++ b/internal/connections/service.go @@ -159,6 +159,14 @@ func (s *ConnectionService) DeleteGroup(id int64) error { return nil } +func (s *ConnectionService) RenameGroup(id int64, name string) error { + _, err := s.db.Exec("UPDATE groups SET name = ? WHERE id = ?", name, id) + if err != nil { + return fmt.Errorf("rename group: %w", err) + } + return nil +} + // ---------- Connection CRUD ---------- func (s *ConnectionService) CreateConnection(input CreateConnectionInput) (*Connection, error) {