mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-24 10:37:37 +00:00
Remove duplicate websocket notification
This commit is contained in:
parent
7866eed613
commit
05641cfb02
1 changed files with 2 additions and 24 deletions
|
|
@ -608,30 +608,8 @@ export const WebsocketProvider = ({ children }) => {
|
|||
loading: true,
|
||||
});
|
||||
} else if (data.status === 'completed') {
|
||||
// Update to completion state
|
||||
notifications.update({
|
||||
id: 'bulk-channel-creation-progress',
|
||||
title: 'Bulk Channel Creation Complete',
|
||||
message: `Successfully created ${data.created_count || 'multiple'} channels${data.error_count > 0 ? ` (${data.error_count} errors)` : ''}`,
|
||||
color: 'green.5',
|
||||
autoClose: 8000, // Auto-close after completion
|
||||
withCloseButton: true, // Allow manual close
|
||||
loading: false, // Remove loading indicator
|
||||
});
|
||||
|
||||
// Refresh channels
|
||||
try {
|
||||
await API.requeryChannels();
|
||||
await useChannelsStore.getState().fetchChannels();
|
||||
console.log(
|
||||
'Channels refreshed after bulk creation completion'
|
||||
);
|
||||
} catch (error) {
|
||||
console.error(
|
||||
'Error refreshing channels after bulk completion:',
|
||||
error
|
||||
);
|
||||
}
|
||||
// Hide the progress notification since channels_created will show success
|
||||
notifications.hide('bulk-channel-creation-progress');
|
||||
} else if (data.status === 'failed') {
|
||||
// Update to error state
|
||||
notifications.update({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue