mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 21:12:15 -07:00
Fix Interactive Import, Add Track Actions and Reducers
This commit is contained in:
parent
8f45fe0afe
commit
90d9741056
13 changed files with 193 additions and 27 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue