diff options
Diffstat (limited to 'src/lib.rs')
-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"] |