feat(loop): loop durdurma özelliği ekle

This commit is contained in:
2026-01-04 13:38:17 +03:00
parent 2e46bacb36
commit 45946e7c8e

View File

@@ -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) => { const applyProfile = async (profile: Profile) => {
if (!selectedHash) { if (!selectedHash) {
pushAlert({ pushAlert({