fix(plex,share): Recently added's See all opens newest first, and a share link says open
See all on Recently added opened Browse in whatever sort was last used, by title on the account it was seen on. The share dialog said anyone can watch a link that may hold a zip.
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
"pickPlaceholder": "Search a user…",
|
||||
"noUsers": "No other users yet.",
|
||||
"linkSection": "Share a link",
|
||||
"linkHint": "Anyone with the link can watch — no account needed.",
|
||||
"linkHint": "Anyone with the link can open it — no account needed.",
|
||||
"linkCopied": "Share link copied to clipboard",
|
||||
"openNewTab": "Open in new tab",
|
||||
"linkFailed": "Couldn’t create the share link",
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
"pickPlaceholder": "Keress egy felhasználót…",
|
||||
"noUsers": "Nincs más felhasználó.",
|
||||
"linkSection": "Megosztás linkkel",
|
||||
"linkHint": "A link birtokában bárki megnézheti — fiók nélkül is.",
|
||||
"linkHint": "A link birtokában bárki megnyithatja — fiók nélkül is.",
|
||||
"linkCopied": "Megosztási link a vágólapra másolva",
|
||||
"openNewTab": "Megnyitás új lapon",
|
||||
"linkFailed": "Nem sikerült a megosztási link létrehozása",
|
||||
|
||||
@@ -80,6 +80,9 @@ const LASTWATCHED_SORT: NonNullable<SortState> = Object.freeze({
|
||||
dir: "desc" as const,
|
||||
});
|
||||
|
||||
// What the Recently added rail's See all opens on.
|
||||
const ADDED_SORT: NonNullable<SortState> = Object.freeze({ key: "added", dir: "desc" as const });
|
||||
|
||||
// Watch-state options for the toolbar pill (moved out of the filter rail — it's a top-level "what am
|
||||
// I looking at" control now, like the feed's Watch-state pill, not a rail widget).
|
||||
const SHOW_OPTS = ["all", "unwatched", "in_progress", "watched"] as const;
|
||||
@@ -582,6 +585,9 @@ function PlexBrowseView({ sub }: { sub: ReturnType<typeof useHistorySubview<Sub>
|
||||
// Each opens the list its rail is the start of: the watch state goes with it, and
|
||||
// entering in-progress brings the last-watched sort (the effect above).
|
||||
onSeeAllRecent={() => {
|
||||
// Newest first is the list's point, so no earlier sort comes back as it leaves in-progress.
|
||||
preInProgressSort.current = null;
|
||||
setSort(ADDED_SORT);
|
||||
setShow("all");
|
||||
sub.open({ kind: "grid" });
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user