diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-18 16:32:43 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-18 17:31:04 +0100 |
commit | 3f89caae3831b7398ab1fe4f7cbe8390e92b40c7 (patch) | |
tree | fcf8602b3a1e0fb77c9144b759e2119007aefab5 | |
parent | 0682a97f9c0f5961dd1a22ba2ff8e545cef76400 (diff) |
As soon as posting operation returns, log the result
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | gui/src/app.rs | 9 |
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); } |