From 45946e7c8e8518b60fb94abe78d824b7bcc5f0d9 Mon Sep 17 00:00:00 2001 From: wisecolt Date: Sun, 4 Jan 2026 13:38:17 +0300 Subject: [PATCH] =?UTF-8?q?feat(loop):=20loop=20durdurma=20=C3=B6zelli?= =?UTF-8?q?=C4=9Fi=20ekle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/src/components/loop/LoopSetupCard.tsx | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) 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({