added delete option
This commit is contained in:
@@ -160,6 +160,15 @@ AniWorld.IndexSocketHandler = (function() {
|
||||
}
|
||||
});
|
||||
|
||||
// Series deleted event — remove the card from the UI
|
||||
socket.on(WS_EVENTS.SERIES_DELETED, function(data) {
|
||||
console.info('[SocketHandler] Series deleted:', data);
|
||||
if (data && data.key && AniWorld.SeriesManager && AniWorld.SeriesManager.removeSeries) {
|
||||
AniWorld.SeriesManager.removeSeries(data.key);
|
||||
AniWorld.UI.showToast('Series deleted: ' + (data.name || data.key), 'success');
|
||||
}
|
||||
});
|
||||
|
||||
// Download events
|
||||
socket.on(WS_EVENTS.DOWNLOAD_STARTED, function(data) {
|
||||
isDownloading = true;
|
||||
|
||||
Reference in New Issue
Block a user