fix(feed): the card menu's reset uses the card's own reset string

Two keys for one action had already drifted once; the menu now reads card.resetState like the
card's button.
This commit is contained in:
2026-09-19 05:54:19 +02:00
parent ce30b99327
commit 7ed6ccf171
4 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ export function FeedVideoMenu({
? [ ? [
{ {
id: "reset", id: "reset",
label: t("card.menu.reset"), label: t("card.resetState"),
icon: <RotateCcw className={icon} />, icon: <RotateCcw className={icon} />,
onSelect: () => onResetState(v.id), onSelect: () => onResetState(v.id),
}, },
@@ -113,7 +113,7 @@ describe("the feed card's menu", () => {
"card.menu.unmarkWatched", "card.menu.unmarkWatched",
"card.menu.unsave", "card.menu.unsave",
"card.hide", "card.hide",
"card.menu.reset", "card.resetState",
"home.pin.add", "home.pin.add",
]); ]);
fireEvent.click(item("card.menu.unsave")); fireEvent.click(item("card.menu.unsave"));
@@ -128,7 +128,7 @@ describe("the feed card's menu", () => {
it("clears the progress of a half-watched one", async () => { it("clears the progress of a half-watched one", async () => {
const { handlers } = openMenu(video({ position_seconds: 30 })); const { handlers } = openMenu(video({ position_seconds: 30 }));
fireEvent.click(item("card.menu.reset")); fireEvent.click(item("card.resetState"));
await vi.waitFor(() => expect(handlers.onResetState).toHaveBeenLastCalledWith("v1")); await vi.waitFor(() => expect(handlers.onResetState).toHaveBeenLastCalledWith("v1"));
}); });
}); });
+1 -2
View File
@@ -23,7 +23,6 @@
"menu": { "menu": {
"label": "Video", "label": "Video",
"unmarkWatched": "Mark unwatched", "unmarkWatched": "Mark unwatched",
"unsave": "Remove from saved", "unsave": "Remove from saved"
"reset": "Reset (clear progress and status)"
} }
} }
+1 -2
View File
@@ -23,7 +23,6 @@
"menu": { "menu": {
"label": "Videó", "label": "Videó",
"unmarkWatched": "Megnézés visszavonása", "unmarkWatched": "Megnézés visszavonása",
"unsave": "Törlés a mentettek közül", "unsave": "Törlés a mentettek közül"
"reset": "Alaphelyzet (előzmény és státusz törlése)"
} }
} }