diff --git a/apps/web/src/components/loop/LoopSetupCard.tsx b/apps/web/src/components/loop/LoopSetupCard.tsx index 4099654..c53437d 100644 --- a/apps/web/src/components/loop/LoopSetupCard.tsx +++ b/apps/web/src/components/loop/LoopSetupCard.tsx @@ -109,6 +109,26 @@ export const LoopSetupCard = () => { } }; + const stopLoop = async () => { + if (!selectedHash) { + return; + } + try { + await api.post("/api/loop/stop-by-hash", { hash: selectedHash }); + pushAlert({ + title: "Loop durduruldu", + description: "Seçili torrent için loop durduruldu.", + variant: "success", + }); + } catch (error) { + pushAlert({ + title: "Durdurma başarısız", + description: "Loop durdurulamadı.", + variant: "error", + }); + } + }; + const applyProfile = async (profile: Profile) => { if (!selectedHash) { pushAlert({