Implement a button for submitting feedback
Co-Authored-By: Kay Simmons <3323631+Kethku@users.noreply.github.com>
This commit is contained in:
parent
9742bd7fd4
commit
d4d9a142fc
5 changed files with 132 additions and 17 deletions
|
@ -11,6 +11,7 @@ use collections::VecDeque;
|
|||
pub use editor;
|
||||
use editor::{Editor, MultiBuffer};
|
||||
|
||||
use feedback::feedback_editor::ToolbarButton;
|
||||
use futures::StreamExt;
|
||||
use gpui::{
|
||||
actions,
|
||||
|
@ -287,6 +288,8 @@ pub fn initialize_workspace(
|
|||
toolbar.add_item(buffer_search_bar, cx);
|
||||
let project_search_bar = cx.add_view(|_| ProjectSearchBar::new());
|
||||
toolbar.add_item(project_search_bar, cx);
|
||||
let submit_feedback_button = cx.add_view(|_| ToolbarButton::new());
|
||||
toolbar.add_item(submit_feedback_button, cx);
|
||||
})
|
||||
});
|
||||
}
|
||||
|
@ -344,7 +347,7 @@ pub fn initialize_workspace(
|
|||
let activity_indicator =
|
||||
activity_indicator::ActivityIndicator::new(workspace, app_state.languages.clone(), cx);
|
||||
let cursor_position = cx.add_view(|_| editor::items::CursorPosition::new());
|
||||
let feedback_button = cx.add_view(|_| feedback::feedback_editor::FeedbackButton {});
|
||||
let feedback_button = cx.add_view(|_| feedback::feedback_editor::StatusBarButton {});
|
||||
workspace.status_bar().update(cx, |status_bar, cx| {
|
||||
status_bar.add_left_item(diagnostic_summary, cx);
|
||||
status_bar.add_left_item(activity_indicator, cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue