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