diff options
author | Vika <vika@fireburn.ru> | 2024-08-25 20:27:36 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-08-25 20:27:36 +0300 |
commit | bbde99efb4711de5e61aa0fb247f42e29681e581 (patch) | |
tree | 69cabd4d8d1c278ddd83f3d18f74df22533bb1c3 /src | |
parent | 7f3c70998e6d4487a9d567c84aa2d0efac203fc7 (diff) | |
download | bowl-bbde99efb4711de5e61aa0fb247f42e29681e581.tar.zst |
Fix stuck buttons
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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"] |