mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-25 11:04:07 +00:00
Allow edit groups if user is on a different screen.
This commit is contained in:
parent
e9c5a719b1
commit
c4bdb53749
1 changed files with 7 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ import useChannelsStore from '../store/channels';
|
|||
import useEPGsStore from '../store/epgs';
|
||||
import { Stack, Button, Group } from '@mantine/core';
|
||||
import API from '../api';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
|
||||
export default function M3URefreshNotification() {
|
||||
const playlists = usePlaylistsStore((s) => s.playlists);
|
||||
|
|
@ -18,6 +19,7 @@ export default function M3URefreshNotification() {
|
|||
const fetchEPGData = useEPGsStore((s) => s.fetchEPGData);
|
||||
|
||||
const [notificationStatus, setNotificationStatus] = useState({});
|
||||
const navigate = useNavigate();
|
||||
|
||||
const handleM3UUpdate = (data) => {
|
||||
if (
|
||||
|
|
@ -61,8 +63,12 @@ export default function M3URefreshNotification() {
|
|||
size="xs"
|
||||
variant="outline"
|
||||
onClick={() => {
|
||||
// Open the M3U edit modal for this account
|
||||
// Store the ID we want to edit in the store first
|
||||
usePlaylistsStore.getState().setEditPlaylistId(data.account);
|
||||
|
||||
// Then navigate to the content sources page
|
||||
// Using the exact path that matches your app's routing structure
|
||||
navigate('/sources');
|
||||
}}
|
||||
>
|
||||
Edit Groups
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue