From 7199953e22704fc26e55fdab13d91811758a109e Mon Sep 17 00:00:00 2001 From: Mark D'Avella Date: Sun, 28 Apr 2024 08:31:41 -0400 Subject: [PATCH] disable modal for plex items in guide (#396) --- web/src/components/guide/TvGuide.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/src/components/guide/TvGuide.tsx b/web/src/components/guide/TvGuide.tsx index c9fb410c0..7860523f7 100644 --- a/web/src/components/guide/TvGuide.tsx +++ b/web/src/components/guide/TvGuide.tsx @@ -21,17 +21,17 @@ import { } from '@mui/material'; import { ChannelLineup, TvGuideProgram } from '@tunarr/types'; import dayjs, { Dayjs } from 'dayjs'; -import { isUndefined, isEmpty, isNull, map, round } from 'lodash-es'; +import { isEmpty, isNull, isUndefined, map, round } from 'lodash-es'; import { Fragment, useCallback, useEffect, useRef, useState } from 'react'; import { Link as RouterLink } from 'react-router-dom'; import { useInterval } from 'usehooks-ts'; import { alternateColors, forTvGuideProgram } from '../../helpers/util'; import { useTvGuides, useTvGuidesPrefetch } from '../../hooks/useTvGuide'; import useStore from '../../store'; +import { useSettings } from '../../store/settings/selectors.ts'; import ProgramDetailsDialog from '../ProgramDetailsDialog'; import TunarrLogo from '../TunarrLogo'; import PaddedPaper from '../base/PaddedPaper'; -import { useSettings } from '../../store/settings/selectors.ts'; const StyledMenu = styled((props: MenuProps) => ( (); const handleModalOpen = useCallback((program: TvGuideProgram | undefined) => { + if (program && program.type === 'flex') { + return; + } + setModalProgram(program); }, []);