mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix download control
This commit is contained in:
@@ -30,7 +30,9 @@ const toggleDownload = async () => {
|
|||||||
const result: { [key: string]: any } = await api.put(
|
const result: { [key: string]: any } = await api.put(
|
||||||
`download/${props.info?.hash}/${operation}`
|
`download/${props.info?.hash}/${operation}`
|
||||||
);
|
);
|
||||||
|
if (result.success) {
|
||||||
isDownloading.value = !isDownloading.value;
|
isDownloading.value = !isDownloading.value;
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
@@ -54,14 +56,17 @@ const deleteDownload = () => {
|
|||||||
<VImg
|
<VImg
|
||||||
aspect-ratio="2/3"
|
aspect-ratio="2/3"
|
||||||
width="100"
|
width="100"
|
||||||
class="rounded shadow-lg"
|
class="rounded"
|
||||||
:src="props.info?.media.image"
|
:src="props.info?.media.image"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VCardTitle>{{ props.info?.media.title || props.info?.name }} {{ props.info?.season_episode }}</VCardTitle>
|
<VCardTitle
|
||||||
|
>{{ props.info?.media.title || props.info?.name }}
|
||||||
|
{{ props.info?.season_episode }}</VCardTitle
|
||||||
|
>
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
|
|
||||||
<VCardText
|
<VCardText
|
||||||
|
|||||||
Reference in New Issue
Block a user