Fix Interactive Import, Add Track Actions and Reducers

This commit is contained in:
Qstick 2017-09-24 01:10:24 -04:00
parent 8f45fe0afe
commit 90d9741056
13 changed files with 193 additions and 27 deletions

View file

@ -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({