Fix writing comments and non-updating community info
This commit is contained in:
parent
9e4cfe6eee
commit
bc488e7cd3
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue