+ {t(state === "error" ? "common.loadError" : "common.loading")} +
+ ); +} + function NumberInput({ label, value, diff --git a/frontend/src/modules/plex/PlexSidebar.year.dom.test.tsx b/frontend/src/modules/plex/PlexSidebar.year.dom.test.tsx index 25a9a54e..056d4de8 100644 --- a/frontend/src/modules/plex/PlexSidebar.year.dom.test.tsx +++ b/frontend/src/modules/plex/PlexSidebar.year.dom.test.tsx @@ -64,6 +64,27 @@ describe("the Plex rail's Year section", () => { expect(screen.queryByRole("button", { pressed: true })).toBeNull(); }); + it("says the years are loading, or failed to load, rather than showing none", () => { + const { rerender } = render( +