Run pre-commit
This commit is contained in:
parent
b91afa65fd
commit
7b65773b12
@ -520,12 +520,12 @@ export function cleanServiceGroups(groups) {
|
|||||||
if (["emby", "jellyfin"].includes(type)) {
|
if (["emby", "jellyfin"].includes(type)) {
|
||||||
if (enableBlocks !== undefined) cleanedService.widget.enableBlocks = JSON.parse(enableBlocks);
|
if (enableBlocks !== undefined) cleanedService.widget.enableBlocks = JSON.parse(enableBlocks);
|
||||||
if (enableNowPlaying !== undefined) cleanedService.widget.enableNowPlaying = JSON.parse(enableNowPlaying);
|
if (enableNowPlaying !== undefined) cleanedService.widget.enableNowPlaying = JSON.parse(enableNowPlaying);
|
||||||
if (enableUser !== undefined) {
|
if (enableUser !== undefined) {
|
||||||
cleanedService.widget.enableUser = !!JSON.parse(enableUser);
|
cleanedService.widget.enableUser = !!JSON.parse(enableUser);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (["tautulli"].includes(type)) {
|
if (["tautulli"].includes(type)) {
|
||||||
if (enableUser !== undefined) {
|
if (enableUser !== undefined) {
|
||||||
cleanedService.widget.enableUser = !!JSON.parse(enableUser);
|
cleanedService.widget.enableUser = !!JSON.parse(enableUser);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,7 +26,8 @@ function millisecondsToString(milliseconds) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function SingleSessionEntry({ session, enableUser }) {
|
function SingleSessionEntry({ session, enableUser }) {
|
||||||
const { full_title, duration, view_offset, progress_percent, state, video_decision, audio_decision, username } = session;
|
const { full_title, duration, view_offset, progress_percent, state, video_decision, audio_decision, username } =
|
||||||
|
session;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@ -174,7 +175,7 @@ export default function Component({ service }) {
|
|||||||
const session = playing[0];
|
const session = playing[0];
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col pb-1 mx-1">
|
<div className="flex flex-col pb-1 mx-1">
|
||||||
<SingleSessionEntry session={session} enableUser={enableUser}/>
|
<SingleSessionEntry session={session} enableUser={enableUser} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -182,7 +183,7 @@ export default function Component({ service }) {
|
|||||||
return (
|
return (
|
||||||
<div className="flex flex-col pb-1 mx-1">
|
<div className="flex flex-col pb-1 mx-1">
|
||||||
{playing.map((session) => (
|
{playing.map((session) => (
|
||||||
<SessionEntry key={session.Id} session={session} enableUser={enableUser}/>
|
<SessionEntry key={session.Id} session={session} enableUser={enableUser} />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user