From ace4d83789bc7c771808fd5f438890ab76017e74 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 14 Feb 2026 16:39:24 +0100 Subject: [PATCH] Update security.tsx --- AppImage/components/security.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/AppImage/components/security.tsx b/AppImage/components/security.tsx index e0ae1310..7e79bed0 100644 --- a/AppImage/components/security.tsx +++ b/AppImage/components/security.tsx @@ -10,7 +10,7 @@ import { Trash2, RefreshCw, Clock, ShieldCheck, Globe, FileKey, AlertTriangle, Flame, Bug, Search, Download, Power, PowerOff, Plus, Minus, Activity, Settings, Ban, FileText, Printer, Play, BarChart3, TriangleAlert, ChevronDown, ArrowDownLeft, ArrowUpRight, - ChevronRight, Network, Zap, + ChevronRight, Network, Zap, Pencil, Check, X, } from "lucide-react" import { getApiUrl, fetchApi } from "../lib/api-config" import { TwoFactorSetup } from "./two-factor-setup" @@ -90,6 +90,12 @@ export function Security() { const [addingRule, setAddingRule] = useState(false) const [deletingRuleIdx, setDeletingRuleIdx] = useState(null) const [expandedRuleKey, setExpandedRuleKey] = useState(null) + const [editingRuleKey, setEditingRuleKey] = useState(null) + const [editRule, setEditRule] = useState({ + direction: "IN", action: "ACCEPT", protocol: "tcp", + dport: "", sport: "", source: "", iface: "", comment: "", level: "host", + }) + const [savingRule, setSavingRule] = useState(false) // Security Tools state const [toolsLoading, setToolsLoading] = useState(true)