refactor(ui): Simplified the popup delegation so all future UI is easier to implement

This commit is contained in:
2024-12-11 15:08:52 -07:00
parent e9a30382a3
commit c09950d0af
59 changed files with 488 additions and 660 deletions
+7 -3
View File
@@ -2102,12 +2102,16 @@ impl<'a, 'b> Network<'a, 'b> {
self
.handle_request::<Value, Value>(request_props, |test_results, mut app| {
if test_results.as_object().is_none() {
app.data.radarr_data.indexer_test_error = Some(
test_results.as_array().unwrap()[0]
app.data.radarr_data.indexer_test_errors = Some(
test_results
.as_array()
.unwrap()[0]
.get("errorMessage")
.unwrap()
.to_string(),
.to_string()
);
} else {
app.data.radarr_data.indexer_test_errors = Some(String::new());
};
})
.await