don't show download button on already downloaded items.
This commit is contained in:
parent
0c3da6f3f2
commit
a8c080ffd5
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ defmodule PinchflatWeb.Sources.MediaItemTableLive do
|
||||||
|
|
||||||
<.link
|
<.link
|
||||||
href={~p"/sources/#{@source.id}/media/#{media_item.id}/force_download"}
|
href={~p"/sources/#{@source.id}/media/#{media_item.id}/force_download"}
|
||||||
:if={!media_item.prevent_download}
|
:if={@media_state !== "downloaded"}
|
||||||
method="post"
|
method="post"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
data-confirm="Are you sure you force a download of this media?"
|
data-confirm="Are you sure you force a download of this media?"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue