mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-17 16:50:53 +00:00
fixed reverted websocket port, record now shows on all shows, not just currently playiny
This commit is contained in:
parent
b3551fe32f
commit
386876a378
2 changed files with 14 additions and 13 deletions
|
|
@ -29,7 +29,7 @@ export const WebsocketProvider = ({ children }) => {
|
|||
useEffect(() => {
|
||||
let wsUrl = `${window.location.host}/ws/`;
|
||||
if (import.meta.env.DEV) {
|
||||
wsUrl = `${window.location.hostname}:5656/ws/`;
|
||||
wsUrl = `${window.location.hostname}:8001/ws/`;
|
||||
}
|
||||
|
||||
if (window.location.protocol.match(/https/)) {
|
||||
|
|
|
|||
|
|
@ -463,16 +463,17 @@ export default function TVChannelGuide({ startDate, endDate }) {
|
|||
{selectedProgram.description || 'No description available.'}
|
||||
</Text>
|
||||
{/* Only show the Watch button if currently live */}
|
||||
{now.isAfter(dayjs(selectedProgram.start_time)) &&
|
||||
now.isBefore(dayjs(selectedProgram.end_time)) && (
|
||||
<Flex mih={50} gap="xs" justify="flex-end" align="flex-end">
|
||||
<Button
|
||||
variant="transparent"
|
||||
color="gray"
|
||||
onClick={() => record(selectedProgram)}
|
||||
>
|
||||
Record
|
||||
</Button>
|
||||
<Flex mih={50} gap="xs" justify="flex-end" align="flex-end">
|
||||
<Button
|
||||
variant="transparent"
|
||||
color="gray"
|
||||
onClick={() => record(selectedProgram)}
|
||||
>
|
||||
Record
|
||||
</Button>
|
||||
|
||||
{now.isAfter(dayjs(selectedProgram.start_time)) &&
|
||||
now.isBefore(dayjs(selectedProgram.end_time)) && (
|
||||
<Button
|
||||
variant="transparent"
|
||||
color="gray"
|
||||
|
|
@ -480,8 +481,8 @@ export default function TVChannelGuide({ startDate, endDate }) {
|
|||
>
|
||||
Watch Now
|
||||
</Button>
|
||||
</Flex>
|
||||
)}
|
||||
)}
|
||||
</Flex>
|
||||
</>
|
||||
)}
|
||||
</Modal>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue