feat(loop): loop durdurma özelliği ekle
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user