chore: refine some ui components (#38)
Reviewed-on: https://git.reya.su/reya/coop/pulls/38
This commit was merged in pull request #38.
This commit is contained in:
@@ -164,9 +164,7 @@ impl RenderOnce for RoomEntry {
|
||||
)
|
||||
.on_cancel(move |_event, window, cx| {
|
||||
window.dispatch_action(Box::new(ClosePanel), cx);
|
||||
// Prevent closing the modal on click
|
||||
// modal will be automatically closed after closing panel
|
||||
false
|
||||
true
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
@@ -354,6 +354,14 @@ impl Sidebar {
|
||||
cx.notify();
|
||||
});
|
||||
self.new_requests = false;
|
||||
|
||||
// Reset search state when switching to inbox/requests
|
||||
self.reset(window, cx);
|
||||
|
||||
// Clear the find input value
|
||||
self.find_input.update(cx, |this, cx| {
|
||||
this.set_value("", window, cx);
|
||||
});
|
||||
}
|
||||
|
||||
fn render_list_items(
|
||||
|
||||
Reference in New Issue
Block a user