mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-10 08:39:34 +00:00
fix: redirect to preset
This commit is contained in:
@@ -35,10 +35,11 @@ export function RedirectClientModal({ id, isOpen, name, currentPath, origin, onC
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (newPath.startsWith('preset-')) {
|
if (newPath.startsWith('preset-')) {
|
||||||
|
setRedirect({ target: id, redirect: newPath.slice(7) });
|
||||||
|
} else {
|
||||||
setRedirect({ target: id, redirect: newPath });
|
setRedirect({ target: id, redirect: newPath });
|
||||||
}
|
}
|
||||||
|
|
||||||
setRedirect({ target: id, redirect: newPath });
|
|
||||||
onClose();
|
onClose();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,10 @@ const createSelector =
|
|||||||
|
|
||||||
export const setClientRemote = {
|
export const setClientRemote = {
|
||||||
setIdentify: (payload: { target: string; identify: boolean }) => sendSocket('client', payload),
|
setIdentify: (payload: { target: string; identify: boolean }) => sendSocket('client', payload),
|
||||||
setRedirect: (payload: { target: string; redirect: string }) => sendSocket('client', payload),
|
setRedirect: (payload: { target: string; redirect: string }) => {
|
||||||
|
console.log('--- got', payload);
|
||||||
|
sendSocket('client', payload);
|
||||||
|
},
|
||||||
setClientName: (payload: { target: string; rename: string }) => sendSocket('client', payload),
|
setClientName: (payload: { target: string; rename: string }) => sendSocket('client', payload),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user