fix: align AlertDialog structure with project standards using AlertDialogBody
All checks were successful
Build MIPS Binary / build (push) Successful in 1m52s
All checks were successful
Build MIPS Binary / build (push) Successful in 1m52s
This commit is contained in:
@@ -14,7 +14,17 @@ use crate::components::ui::empty::*;
|
|||||||
use crate::components::ui::input::Input;
|
use crate::components::ui::input::Input;
|
||||||
use crate::components::ui::multi_select::*;
|
use crate::components::ui::multi_select::*;
|
||||||
use crate::components::ui::dropdown_menu::*;
|
use crate::components::ui::dropdown_menu::*;
|
||||||
use crate::components::ui::alert_dialog::*;
|
use crate::components::ui::alert_dialog::{
|
||||||
|
AlertDialog,
|
||||||
|
AlertDialogBody,
|
||||||
|
AlertDialogClose,
|
||||||
|
AlertDialogContent,
|
||||||
|
AlertDialogDescription,
|
||||||
|
AlertDialogFooter,
|
||||||
|
AlertDialogHeader,
|
||||||
|
AlertDialogTitle,
|
||||||
|
AlertDialogTrigger,
|
||||||
|
};
|
||||||
use tailwind_fuse::tw_merge;
|
use tailwind_fuse::tw_merge;
|
||||||
|
|
||||||
const ALL_COLUMNS: [(&str, &str); 8] = [
|
const ALL_COLUMNS: [(&str, &str); 8] = [
|
||||||
@@ -244,39 +254,41 @@ pub fn TorrentTable() -> impl IntoView {
|
|||||||
</div>
|
</div>
|
||||||
</AlertDialogTrigger>
|
</AlertDialogTrigger>
|
||||||
<AlertDialogContent class="sm:max-w-[425px]">
|
<AlertDialogContent class="sm:max-w-[425px]">
|
||||||
<AlertDialogHeader class="space-y-3">
|
<AlertDialogBody>
|
||||||
<AlertDialogTitle class="text-destructive flex items-center gap-2 text-xl">
|
<AlertDialogHeader class="space-y-3">
|
||||||
<Trash2 class="size-6" />
|
<AlertDialogTitle class="text-destructive flex items-center gap-2 text-xl">
|
||||||
"Toplu Silme Onayı"
|
<Trash2 class="size-6" />
|
||||||
</AlertDialogTitle>
|
"Toplu Silme Onayı"
|
||||||
<AlertDialogDescription class="text-sm leading-relaxed">
|
</AlertDialogTitle>
|
||||||
{move || format!("Seçili {} adet torrent silinecek. Lütfen silme yöntemini seçin:", selected_count.get())}
|
<AlertDialogDescription class="text-sm leading-relaxed">
|
||||||
<div class="mt-4 p-4 bg-destructive/5 rounded-lg border border-destructive/10 text-xs text-destructive/80 font-medium">
|
{move || format!("Seçili {} adet torrent silinecek. Lütfen silme yöntemini seçin:", selected_count.get())}
|
||||||
"⚠️ Dikkat: Verilerle birlikte silme işlemi dosyaları diskten de kalıcı olarak kaldıracaktır."
|
<div class="mt-4 p-4 bg-destructive/5 rounded-lg border border-destructive/10 text-xs text-destructive/80 font-medium">
|
||||||
|
"⚠️ Dikkat: Verilerle birlikte silme işlemi dosyaları diskten de kalıcı olarak kaldıracaktır."
|
||||||
|
</div>
|
||||||
|
</AlertDialogDescription>
|
||||||
|
</AlertDialogHeader>
|
||||||
|
<AlertDialogFooter class="mt-6">
|
||||||
|
<div class="flex flex-col-reverse sm:flex-row gap-3 w-full sm:justify-end">
|
||||||
|
<AlertDialogClose class="sm:flex-1 md:flex-none">"Vazgeç"</AlertDialogClose>
|
||||||
|
<div class="flex flex-col sm:flex-row gap-2">
|
||||||
|
<Button
|
||||||
|
variant=ButtonVariant::Secondary
|
||||||
|
class="w-full sm:w-auto font-medium"
|
||||||
|
on:click=move |_| bulk_action("delete")
|
||||||
|
>
|
||||||
|
"Sadece Sil"
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
variant=ButtonVariant::Destructive
|
||||||
|
class="w-full sm:w-auto font-bold"
|
||||||
|
on:click=move |_| bulk_action("delete_with_data")
|
||||||
|
>
|
||||||
|
"Verilerle Sil"
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</AlertDialogDescription>
|
</AlertDialogFooter>
|
||||||
</AlertDialogHeader>
|
</AlertDialogBody>
|
||||||
<AlertDialogFooter class="mt-6">
|
|
||||||
<div class="flex flex-col-reverse sm:flex-row gap-3 w-full sm:justify-end">
|
|
||||||
<AlertDialogClose class="sm:flex-1 md:flex-none">"Vazgeç"</AlertDialogClose>
|
|
||||||
<div class="flex flex-col sm:flex-row gap-2">
|
|
||||||
<Button
|
|
||||||
variant=ButtonVariant::Secondary
|
|
||||||
class="w-full sm:w-auto font-medium"
|
|
||||||
on:click=move |_| bulk_action("delete")
|
|
||||||
>
|
|
||||||
"Sadece Sil"
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
variant=ButtonVariant::Destructive
|
|
||||||
class="w-full sm:w-auto font-bold"
|
|
||||||
on:click=move |_| bulk_action("delete_with_data")
|
|
||||||
>
|
|
||||||
"Verilerle Sil"
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</AlertDialogFooter>
|
|
||||||
</AlertDialogContent>
|
</AlertDialogContent>
|
||||||
</AlertDialog>
|
</AlertDialog>
|
||||||
</DropdownMenuGroup>
|
</DropdownMenuGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user