mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-03 05:25:10 +00:00
Sync with Monitoring albums modal not closing after saving
This commit is contained in:
parent
74d2b4e0dc
commit
9a4c6a8db8
2 changed files with 5 additions and 6 deletions
|
@ -20,7 +20,7 @@ import AlbumGroupInfo from './AlbumGroupInfo';
|
||||||
import AlbumRowConnector from './AlbumRowConnector';
|
import AlbumRowConnector from './AlbumRowConnector';
|
||||||
import styles from './ArtistDetailsSeason.css';
|
import styles from './ArtistDetailsSeason.css';
|
||||||
|
|
||||||
function getAlbumTypeStatistics(albums) {
|
function getAlbumStatistics(albums) {
|
||||||
let albumCount = 0;
|
let albumCount = 0;
|
||||||
let trackFileCount = 0;
|
let trackFileCount = 0;
|
||||||
let totalAlbumCount = 0;
|
let totalAlbumCount = 0;
|
||||||
|
@ -195,9 +195,9 @@ class ArtistDetailsSeason extends Component {
|
||||||
totalAlbumCount,
|
totalAlbumCount,
|
||||||
trackFileCount,
|
trackFileCount,
|
||||||
monitoredAlbumCount,
|
monitoredAlbumCount,
|
||||||
sizeOnDisk,
|
hasMonitoredAlbums,
|
||||||
hasMonitoredAlbums
|
sizeOnDisk
|
||||||
} = getAlbumTypeStatistics(items);
|
} = getAlbumStatistics(items);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
isOrganizeModalOpen,
|
isOrganizeModalOpen,
|
||||||
|
|
|
@ -19,7 +19,6 @@ public AlbumStudioController(IArtistService artistService, IAlbumMonitoredServic
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
[Consumes("application/json")]
|
[Consumes("application/json")]
|
||||||
[Produces("application/json")]
|
|
||||||
public IActionResult UpdateAll([FromBody] AlbumStudioResource resource)
|
public IActionResult UpdateAll([FromBody] AlbumStudioResource resource)
|
||||||
{
|
{
|
||||||
var artistToUpdate = _artistService.GetArtists(resource.Artist.Select(s => s.Id));
|
var artistToUpdate = _artistService.GetArtists(resource.Artist.Select(s => s.Id));
|
||||||
|
@ -46,7 +45,7 @@ public IActionResult UpdateAll([FromBody] AlbumStudioResource resource)
|
||||||
_albumMonitoredService.SetAlbumMonitoredStatus(artist, resource.MonitoringOptions);
|
_albumMonitoredService.SetAlbumMonitoredStatus(artist, resource.MonitoringOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Accepted(resource);
|
return Accepted(new object());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue