feat: Lidarr UI support for album details popup

This commit is contained in:
2026-01-16 23:21:25 -07:00
parent caf4ad1e64
commit 7bb5f83a56
42 changed files with 3330 additions and 1431 deletions
+11 -5
View File
@@ -1,8 +1,8 @@
use super::App;
use crate::{
models::servarr_data::lidarr::lidarr_data::ActiveLidarrBlock,
network::lidarr_network::LidarrEvent,
};
use super::App;
pub mod lidarr_context_clues;
@@ -70,8 +70,11 @@ impl App<'_> {
if !self.data.lidarr_data.albums.is_empty() {
self
.dispatch_network_event(
LidarrEvent::GetAlbumHistory(self.extract_artist_id().await, self.extract_album_id().await)
.into(),
LidarrEvent::GetAlbumHistory(
self.extract_artist_id().await,
self.extract_album_id().await,
)
.into(),
)
.await;
}
@@ -81,8 +84,11 @@ impl App<'_> {
Some(album_details_modal) if album_details_modal.album_releases.is_empty() => {
self
.dispatch_network_event(
LidarrEvent::GetAlbumReleases(self.extract_artist_id().await, self.extract_album_id().await)
.into(),
LidarrEvent::GetAlbumReleases(
self.extract_artist_id().await,
self.extract_album_id().await,
)
.into(),
)
.await;
}