diff --git a/app/src/lib.rs b/app/src/lib.rs
index 629b005..997cec4 100644
--- a/app/src/lib.rs
+++ b/app/src/lib.rs
@@ -17,6 +17,7 @@ use fnord_ui::components::{Navbar, NavbarBrand, Text, View};
use serde::{Deserialize, Serialize};
use signals::syncstate::{ServerState, SyncState, Torrent};
use signals::use_sync_maindata::{use_sync_maindata, UseSyncMaindataReturn};
+use use_websocket::core::ConnectionReadyState;
pub mod error_template;
@@ -27,12 +28,12 @@ pub fn shell(options: LeptosOptions) -> impl IntoView {
-
+
-
+
-
-
+
+
}
@@ -61,42 +62,30 @@ pub fn App() -> impl IntoView {
// content for this welcome page
-
- "bit-tower"
+
+ "bit-tower"
-
+
}.into_view()
+ }>
+ }
+ }
+ />
- let mut outside_errors = Errors::default();
- outside_errors.insert_with_default_key(AppError::NotFound);
- view! { }.into_view()
- }>
-
-
- }} />
@@ -109,11 +98,14 @@ fn HomePage(
is_auth: Signal,
action: ServerAction,
data: ReadSignal,
+ ready_state: Signal,
) -> impl IntoView {
let res = move || {
if is_auth() {
Either::Left(view! {
-
+
+
+
})
} else {
Either::Right(view! {
@@ -131,7 +123,12 @@ fn HomePage(