Fix writing comments and non-updating community info

This commit is contained in:
Bnyro 2023-06-24 13:02:02 +02:00
parent 9e4cfe6eee
commit bc488e7cd3
2 changed files with 3 additions and 1 deletions

View File

@ -94,6 +94,7 @@ impl SimpleComponent for PostPage {
},
gtk::Button {
#[watch]
set_label: &model.info.post_view.creator.name,
connect_clicked => PostInput::OpenPerson,
},
@ -113,6 +114,7 @@ impl SimpleComponent for PostPage {
},
gtk::Button {
#[watch]
set_label: &model.info.community_view.community.title,
connect_clicked => PostInput::OpenCommunity,
},

View File

@ -99,12 +99,12 @@ impl SimpleComponent for EditorDialog {
set_text: "Body:",
set_halign: gtk::Align::Start,
},
#[name(body)]
gtk::TextView {
set_editable: true,
set_margin_top: 5,
set_margin_bottom: 10,
set_vexpand: true,
set_buffer: Some(&model.body_buffer),
},
gtk::Box {
set_orientation: gtk::Orientation::Horizontal,