Refactor Episode section naming to Album in UI

This commit is contained in:
Qstick 2018-01-01 01:05:24 -05:00
parent 0e7a22dc95
commit b1a016289c
66 changed files with 372 additions and 372 deletions

View file

@ -127,8 +127,8 @@ class SignalRConnector extends Component {
return;
}
if (name === 'episode') {
this.handleEpisode(body);
if (name === 'album') {
this.handleAlbum(body);
return;
}
@ -137,7 +137,7 @@ class SignalRConnector extends Component {
return;
}
if (name === 'episodefile') {
if (name === 'trackfile') {
this.handleTrackFile(body);
return;
}
@ -207,10 +207,10 @@ class SignalRConnector extends Component {
}
}
handleEpisode = (body) => {
handleAlbum = (body) => {
if (body.action === 'updated') {
this.props.updateItem({
section: 'episodes',
section: 'albums',
updateOnly: true,
...body.resource
});