mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-24 02:20:58 +00:00
Fix Interactive Import, Add Track Actions and Reducers
This commit is contained in:
@@ -114,6 +114,11 @@ class SignalRConnector extends Component {
|
||||
return;
|
||||
}
|
||||
|
||||
if (name === 'track') {
|
||||
this.handleTrack(body);
|
||||
return;
|
||||
}
|
||||
|
||||
if (name === 'episodefile') {
|
||||
this.handleEpisodeFile(body);
|
||||
return;
|
||||
@@ -192,6 +197,15 @@ class SignalRConnector extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
handleTrack = (body) => {
|
||||
if (body.action === 'updated') {
|
||||
this.props.updateItem({
|
||||
section: 'tracks',
|
||||
updateOnly: true,
|
||||
...body.resource });
|
||||
}
|
||||
}
|
||||
|
||||
handleEpisodeFile = (body) => {
|
||||
if (body.action === 'updated') {
|
||||
this.props.updateItem({
|
||||
|
||||
Reference in New Issue
Block a user