mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-31 12:10:19 -07:00
Rename Episode Instances to Album to fix AlbumModal
This commit is contained in:
parent
bd3bd9a378
commit
02925245c2
25 changed files with 65 additions and 65 deletions
|
@ -14,7 +14,7 @@ const episodeActionHandlers = {
|
|||
[types.TOGGLE_EPISODE_MONITORED]: function(payload) {
|
||||
return function(dispatch, getState) {
|
||||
const {
|
||||
episodeId: id,
|
||||
albumId: id,
|
||||
episodeEntity = episodeEntities.EPISODES,
|
||||
monitored
|
||||
} = payload;
|
||||
|
@ -64,9 +64,9 @@ const episodeActionHandlers = {
|
|||
const episodeSection = _.last(episodeEntity.split('.'));
|
||||
|
||||
dispatch(batchActions(
|
||||
albumIds.map((episodeId) => {
|
||||
albumIds.map((albumId) => {
|
||||
return updateItem({
|
||||
id: episodeId,
|
||||
id: albumId,
|
||||
section: episodeSection,
|
||||
isSaving: true
|
||||
});
|
||||
|
@ -82,9 +82,9 @@ const episodeActionHandlers = {
|
|||
|
||||
promise.done((data) => {
|
||||
dispatch(batchActions(
|
||||
albumIds.map((episodeId) => {
|
||||
albumIds.map((albumId) => {
|
||||
return updateItem({
|
||||
id: episodeId,
|
||||
id: albumId,
|
||||
section: episodeSection,
|
||||
isSaving: false,
|
||||
monitored
|
||||
|
@ -95,9 +95,9 @@ const episodeActionHandlers = {
|
|||
|
||||
promise.fail((xhr) => {
|
||||
dispatch(batchActions(
|
||||
albumIds.map((episodeId) => {
|
||||
albumIds.map((albumId) => {
|
||||
return updateItem({
|
||||
id: episodeId,
|
||||
id: albumId,
|
||||
section: episodeSection,
|
||||
isSaving: false
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue