diff --git a/frontend/src/components/panels/RackToolbarActions.tsx b/frontend/src/components/panels/RackToolbarActions.tsx
index 4bcb1f4..a3cb6a8 100644
--- a/frontend/src/components/panels/RackToolbarActions.tsx
+++ b/frontend/src/components/panels/RackToolbarActions.tsx
@@ -6,7 +6,7 @@
* much of the cabling is on screen.
*/
import { useState } from 'react'
-import { Cable, Link2, Plus, X } from 'lucide-react'
+import { Cable, Link2, Plus, Trash2, X } from 'lucide-react'
import { toast } from 'sonner'
import { Button } from '@/components/ui/button'
import { useRackStore } from '@/rack/store'
@@ -34,6 +34,8 @@ export function RackToolbarActions() {
const setCableTypeFilter = useRackStore((s) => s.setCableTypeFilter)
const cableDraft = useRackStore((s) => s.cableDraft)
const cancelCableDraft = useRackStore((s) => s.cancelCableDraft)
+ const selectedCableId = useRackStore((s) => s.selectedCableId)
+ const removeSelectedCable = useRackStore((s) => s.removeSelectedCable)
const importCables = useRackStore((s) => s.importCablesFromNetwork)
const networkImportDone = useRackStore((s) => s.networkImportDone)
const designs = useDesignStore((s) => s.designs)
@@ -65,7 +67,7 @@ export function RackToolbarActions() {
variant="ghost"
className={`${ghost} ${cableMode ? 'text-[#00d4ff]' : ''}`}
onClick={toggleCableMode}
- title="Click a port, then another, to patch. Click a cable to remove it."
+ title="Drag from one port to another to patch, or click both in turn. Click a cable to select it, then Delete to unplug."
>
{cableMode ? 'Exit patching' : 'Patch'}
@@ -81,6 +83,18 @@ export function RackToolbarActions() {
)}
+ {cableMode && selectedCableId && (
+
+ )}
+