mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
Refactor Episode section naming to Album in UI
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user