From 3f89caae3831b7398ab1fe4f7cbe8390e92b40c7 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 18 Dec 2021 16:32:43 +0100 Subject: As soon as posting operation returns, log the result Signed-off-by: Matthias Beyer --- gui/src/app.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gui/src/app.rs b/gui/src/app.rs index 8f4d579..73808c8 100644 --- a/gui/src/app.rs +++ b/gui/src/app.rs @@ -117,6 +117,15 @@ impl Application for Distrox { } } + Message::PostCreated(cid) => { + state.input_value = String::new(); + log::info!("Post created: {}", cid); + } + + Message::PostCreationFailed(err) => { + log::error!("Post creation failed: {}", err); + } + Message::PostLoaded((payload, content)) => { state.timeline.push(payload, content); } -- cgit v1.2.3