This commit is contained in:
2026-09-02 12:06:20 +03:30
parent e248943f4c
commit 87aee8c46b
5 changed files with 46 additions and 39 deletions
+11 -7
View File
@@ -220,7 +220,7 @@ export default function MediaPage() {
});
toast.success(
row.is_deeplink_only
? "به فهرست عادی بازگشت."
? "به فهرست عادی بازگردانده شد."
: "به لینک مستقیم تبدیل شد.",
);
reload();
@@ -327,7 +327,7 @@ export default function MediaPage() {
}
/>
<div className="mb-4 flex items-center gap-4">
<div className="mb-4 flex items-center gap-3">
<div className="max-w-sm flex-1">
<Input
value={search}
@@ -336,11 +336,15 @@ export default function MediaPage() {
disabled={showDeepLinks}
/>
</div>
<Switch
checked={showDeepLinks}
onChange={setShowDeepLinks}
label="فقط لینک‌های مستقیم"
/>
<Select
value={showDeepLinks ? "deeplink" : "normal"}
onChange={(e) => setShowDeepLinks(e.target.value === "deeplink")}
aria-label="نمایش"
className="w-44"
>
<option value="normal">رسانه‌های عادی</option>
<option value="deeplink">لینک‌های مستقیم</option>
</Select>
</div>
<DataTable