From bbde99efb4711de5e61aa0fb247f42e29681e581 Mon Sep 17 00:00:00 2001 From: Vika Date: Sun, 25 Aug 2024 20:27:36 +0300 Subject: Fix stuck buttons --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 23b7be7..b5ceccd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -165,10 +165,12 @@ impl AsyncComponent for App { pack_end = >k::Button { set_icon_name: "document-send-symbolic", set_tooltip: "Send post", + #[watch] set_visible: model.micropub.is_some(), + #[watch] set_sensitive: model.submit_busy_guard.is_none(), connect_clicked => Self::Input::SubmitButtonPressed, - } + }, }, #[transition = "Crossfade"] -- cgit 1.4.1