don't show download button on already downloaded items.

This commit is contained in:
Ionuț Staicu 2025-06-07 11:12:03 +03:00
parent 0c3da6f3f2
commit a8c080ffd5

View file

@ -59,7 +59,7 @@ defmodule PinchflatWeb.Sources.MediaItemTableLive do
<.link
href={~p"/sources/#{@source.id}/media/#{media_item.id}/force_download"}
:if={!media_item.prevent_download}
:if={@media_state !== "downloaded"}
method="post"
target="_blank"
data-confirm="Are you sure you force a download of this media?"