mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): do not subscribe to bulk download sio room if baseUrl is set
This commit is contained in:
parent
85dae6ad1e
commit
3a97f6e38e
@ -1,3 +1,4 @@
|
|||||||
|
import { $baseUrl } from 'app/store/nanostores/baseUrl';
|
||||||
import { $bulkDownloadId } from 'app/store/nanostores/bulkDownloadId';
|
import { $bulkDownloadId } from 'app/store/nanostores/bulkDownloadId';
|
||||||
import { $queueId } from 'app/store/nanostores/queueId';
|
import { $queueId } from 'app/store/nanostores/queueId';
|
||||||
import type { AppDispatch } from 'app/store/store';
|
import type { AppDispatch } from 'app/store/store';
|
||||||
@ -38,8 +39,10 @@ export const setEventListeners = (arg: SetEventListenersArg) => {
|
|||||||
dispatch(socketConnected());
|
dispatch(socketConnected());
|
||||||
const queue_id = $queueId.get();
|
const queue_id = $queueId.get();
|
||||||
socket.emit('subscribe_queue', { queue_id });
|
socket.emit('subscribe_queue', { queue_id });
|
||||||
|
if (!$baseUrl.get()) {
|
||||||
const bulk_download_id = $bulkDownloadId.get();
|
const bulk_download_id = $bulkDownloadId.get();
|
||||||
socket.emit('subscribe_bulk_download', { bulk_download_id });
|
socket.emit('subscribe_bulk_download', { bulk_download_id });
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('connect_error', (error) => {
|
socket.on('connect_error', (error) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user