mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-01 21:13:39 +01:00
Show plex connection error
This commit is contained in:
parent
aeac95db48
commit
7844991617
@ -129,7 +129,8 @@
|
|||||||
"playing": "Playing",
|
"playing": "Playing",
|
||||||
"transcoding": "Transcoding",
|
"transcoding": "Transcoding",
|
||||||
"bitrate": "Bitrate",
|
"bitrate": "Bitrate",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "No Active Streams",
|
||||||
|
"plex_connection_error": "Check Plex Connection"
|
||||||
},
|
},
|
||||||
"omada": {
|
"omada": {
|
||||||
"connectedAp": "Connected APs",
|
"connectedAp": "Connected APs",
|
||||||
|
@ -122,11 +122,11 @@ export default function Component({ service }) {
|
|||||||
refreshInterval: 5000,
|
refreshInterval: 5000,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (activityError) {
|
if (activityError || (activityData && Object.keys(activityData.response.data).length === 0)) {
|
||||||
return <Container service={service} error={activityError} />;
|
return <Container service={service} error={activityError ?? { message: t("tautulli.plex_connection_error") } } />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!activityData || Object.keys(activityData.response.data).length === 0) {
|
if (!activityData) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col pb-1 mx-1">
|
<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">
|
<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…
x
Reference in New Issue
Block a user