Show plex connection error

pull/1685/head
shamoon 11 months ago
parent aeac95db48
commit 7844991617

@ -129,7 +129,8 @@
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams"
"no_active": "No Active Streams",
"plex_connection_error": "Check Plex Connection"
},
"omada": {
"connectedAp": "Connected APs",

@ -122,11 +122,11 @@ export default function Component({ service }) {
refreshInterval: 5000,
});
if (activityError) {
return <Container service={service} error={activityError} />;
if (activityError || (activityData && Object.keys(activityData.response.data).length === 0)) {
return <Container service={service} error={activityError ?? { message: t("tautulli.plex_connection_error") } } />;
}
if (!activityData || Object.keys(activityData.response.data).length === 0) {
if (!activityData) {
return (
<div className="flex flex-col pb-1 mx-1">
<div className="text-theme-700 dark:text-theme-200 text-xs relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1">

Loading…
Cancel
Save