Sync metadata changes to UI

This commit is contained in:
Bogdan 2024-10-24 11:10:29 +03:00
parent 00d50a030c
commit 748d888520
2 changed files with 8 additions and 19 deletions

View file

@ -226,6 +226,14 @@ class SignalRConnector extends Component {
} }
}; };
handleMetadata = ({ action, resource }) => {
const section = 'settings.metadata';
if (action === 'updated') {
this.props.dispatchUpdateItem({ section, ...resource });
}
};
handleNotification = ({ action, resource }) => { handleNotification = ({ action, resource }) => {
const section = 'settings.notifications'; const section = 'settings.notifications';

View file

@ -1,7 +1,6 @@
using System; using System;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using NzbDrone.Core.Extras.Metadata; using NzbDrone.Core.Extras.Metadata;
using NzbDrone.Core.ThingiProvider.Events;
using NzbDrone.SignalR; using NzbDrone.SignalR;
using Radarr.Http; using Radarr.Http;
@ -29,23 +28,5 @@ public override object DeleteProviders([FromBody] MetadataBulkResource resource)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
[NonAction]
public override void Handle(ProviderAddedEvent<IMetadata> message)
{
throw new NotImplementedException();
}
[NonAction]
public override void Handle(ProviderUpdatedEvent<IMetadata> message)
{
throw new NotImplementedException();
}
[NonAction]
public override void Handle(ProviderDeletedEvent<IMetadata> message)
{
throw new NotImplementedException();
}
} }
} }