Skip to content

Commit

Permalink
Update ui at info page
Browse files Browse the repository at this point in the history
  • Loading branch information
ChienNM3 committed Feb 10, 2024
1 parent d6352e0 commit acfac90
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
3 changes: 2 additions & 1 deletion ui/info.templ
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ templ Info(infoHash string, info torrent.Info) {
hx-trigger="every 1s"
hx-swap="outerHTML"
hx-target="body"
hx-sync="this:abort"
hx-indicator="none"
>
<p class="text-sm italic">Info Hash: { infoHash }</p>
Expand Down Expand Up @@ -64,7 +65,7 @@ templ Info(infoHash string, info torrent.Info) {
hx-get={ uri.OpenInVLC(infoHash, file.DisplayPath) }
hx-trigger="click"
hx-swap="none"
hx-indicator=".htmx-indicator"
hx-indicator="find .htmx-indicator"
class="inline-flex justify-center items-center space-x-1 rounded-sm bg-red-600 px-4 py-2 text-slate-100 hover:bg-red-700 shadow-md shadow-stone-900"
>
<i class="fa-solid fa-film"></i>
Expand Down
42 changes: 21 additions & 21 deletions ui/info_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit acfac90

Please sign in to comment.