Outbound modal

This commit is contained in:
Alireza Ahmadi
2024-05-09 23:27:08 +02:00
parent 9a02e6593c
commit 43d1aecec7
45 changed files with 2391 additions and 308 deletions
+2
View File
@@ -146,6 +146,8 @@ func (s *ConfigService) SaveChanges(changes map[string]string, loginUser string)
case "outbounds":
if change.Action == "edit" {
newConfig.Outbounds[change.Index] = rawObject
} else if change.Action == "del" {
newConfig.Outbounds = append(newConfig.Outbounds[:change.Index], newConfig.Outbounds[change.Index+1:]...)
} else {
newConfig.Outbounds = append(newConfig.Outbounds, rawObject)
}