feat(ui): add files tab and priority context menu
Some checks failed
Build MIPS Binary / build (push) Failing after 36s

This commit is contained in:
spinline
2026-02-21 00:58:35 +03:00
parent 6106d1cd22
commit 3c2ba477f5
2 changed files with 17 additions and 4 deletions

View File

@@ -106,10 +106,22 @@ pub fn TorrentDetailsSheet() -> impl IntoView {
</TabsContent>
<TabsContent value="files" class="h-full">
<div class="flex flex-col items-center justify-center h-48 opacity-60">
<icons::File class="size-12 mb-3 text-muted-foreground" />
<p class="text-sm font-medium">"Dosya listesi yakında eklenecek"</p>
</div>
{move || {
if let Some(t) = selected_torrent.get() {
view! {
<div class="h-full overflow-y-auto pr-2 pb-8">
<crate::components::torrent::files::TorrentFilesTab hash=t.hash />
</div>
}.into_any()
} else {
view! {
<div class="flex flex-col items-center justify-center h-48 opacity-60">
<icons::File class="size-12 mb-3 text-muted-foreground" />
<p class="text-sm font-medium">"Dosya yükleniyor..."</p>
</div>
}.into_any()
}
}}
</TabsContent>
<TabsContent value="trackers" class="h-full">

View File

@@ -1,3 +1,4 @@
pub mod table;
pub mod add_torrent;
pub mod details;
pub mod files;