Implement feedback actions

CopySystemSpecsIntoClipboard
RequestFeature
FileBugReport
This commit is contained in:
Joseph T. Lyons
2023-12-05 15:48:41 -05:00
parent a80b145d0d
commit 78e1c0f9c3
8 changed files with 144 additions and 151 deletions
@@ -1,18 +1,18 @@
use gpui::{Action, AnyElement, Render, ViewContext, WeakView};
use gpui::{AnyElement, Render, ViewContext, WeakView};
use ui::{prelude::*, ButtonCommon, Icon, IconButton, Tooltip};
use workspace::{StatusItemView, Workspace};
use crate::{feedback_editor::GiveFeedback, feedback_modal::FeedbackModal};
use crate::feedback_modal::FeedbackModal;
pub struct DeployFeedbackButton {
active: bool,
_active: bool,
workspace: WeakView<Workspace>,
}
impl DeployFeedbackButton {
pub fn new(workspace: &Workspace) -> Self {
DeployFeedbackButton {
active: false,
_active: false,
workspace: workspace.weak_handle(),
}
}