mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
fix: update streaming server state if server url is changed
This commit is contained in:
parent
2b253003b0
commit
a3268e8a66
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ const Item = ({ url }: Props) => {
|
|||
|
||||
const selected = useMemo(() => profile.settings.streamingServerUrl === url, [url, profile.settings]);
|
||||
const defaultUrl = useMemo(() => url === DEFAULT_STREAMING_SERVER_URL, [url]);
|
||||
const serverReady = useMemo(() => streamingServer.state?.type === 'Ready' && streamingServer.state.content === 'running', [streamingServer.state]);
|
||||
const serverError = useMemo(() => streamingServer.state?.type === 'Err' || (streamingServer.state?.type === 'Ready' && streamingServer.state.content === 'notRunning'), [streamingServer.state]);
|
||||
const serverReady = useMemo(() => streamingServer.state?.type === 'Ready' && streamingServer.state.content === 'running', [streamingServer]);
|
||||
const serverError = useMemo(() => streamingServer.state?.type === 'Err' || (streamingServer.state?.type === 'Ready' && streamingServer.state.content === 'notRunning'), [streamingServer]);
|
||||
|
||||
const handleDelete = useCallback(() => {
|
||||
deleteServerUrl(url);
|
||||
|
|
|
|||
Loading…
Reference in a new issue