summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-12-18 16:32:43 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-12-18 17:31:04 +0100
commit3f89caae3831b7398ab1fe4f7cbe8390e92b40c7 (patch)
treefcf8602b3a1e0fb77c9144b759e2119007aefab5
parent0682a97f9c0f5961dd1a22ba2ff8e545cef76400 (diff)
As soon as posting operation returns, log the result
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--gui/src/app.rs9
1 files changed, 9 insertions, 0 deletions
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);
}