mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-31 21:36:26 +00:00
commit
e77db87bad
3 changed files with 7 additions and 8 deletions
|
@ -15,7 +15,7 @@ actions!(
|
||||||
CopySystemSpecsIntoClipboard,
|
CopySystemSpecsIntoClipboard,
|
||||||
FileBugReport,
|
FileBugReport,
|
||||||
RequestFeature,
|
RequestFeature,
|
||||||
OpenZedCommunityRepo
|
OpenZedRepo
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ pub fn init(cx: &mut AppContext) {
|
||||||
);
|
);
|
||||||
cx.open_url(&url);
|
cx.open_url(&url);
|
||||||
})
|
})
|
||||||
.register_action(move |_, _: &OpenZedCommunityRepo, cx| {
|
.register_action(move |_, _: &OpenZedRepo, cx| {
|
||||||
let url = "https://github.com/zed-industries/zed";
|
let url = "https://github.com/zed-industries/zed";
|
||||||
cx.open_url(&url);
|
cx.open_url(&url);
|
||||||
});
|
});
|
||||||
|
|
|
@ -19,7 +19,7 @@ use ui::{prelude::*, Button, ButtonStyle, IconPosition, Tooltip};
|
||||||
use util::ResultExt;
|
use util::ResultExt;
|
||||||
use workspace::{ModalView, Toast, Workspace};
|
use workspace::{ModalView, Toast, Workspace};
|
||||||
|
|
||||||
use crate::{system_specs::SystemSpecs, GiveFeedback, OpenZedCommunityRepo};
|
use crate::{system_specs::SystemSpecs, GiveFeedback, OpenZedRepo};
|
||||||
|
|
||||||
// For UI testing purposes
|
// For UI testing purposes
|
||||||
const SEND_SUCCESS_IN_DEV_MODE: bool = true;
|
const SEND_SUCCESS_IN_DEV_MODE: bool = true;
|
||||||
|
@ -417,8 +417,7 @@ impl Render for FeedbackModal {
|
||||||
"Submit"
|
"Submit"
|
||||||
};
|
};
|
||||||
|
|
||||||
let open_community_repo =
|
let open_zed_repo = cx.listener(|_, _, cx| cx.dispatch_action(Box::new(OpenZedRepo)));
|
||||||
cx.listener(|_, _, cx| cx.dispatch_action(Box::new(OpenZedCommunityRepo)));
|
|
||||||
|
|
||||||
v_flex()
|
v_flex()
|
||||||
.elevation_3(cx)
|
.elevation_3(cx)
|
||||||
|
@ -485,12 +484,12 @@ impl Render for FeedbackModal {
|
||||||
.justify_between()
|
.justify_between()
|
||||||
.gap_1()
|
.gap_1()
|
||||||
.child(
|
.child(
|
||||||
Button::new("community_repository", "Community Repository")
|
Button::new("zed_repository", "Zed Repository")
|
||||||
.style(ButtonStyle::Transparent)
|
.style(ButtonStyle::Transparent)
|
||||||
.icon(IconName::ExternalLink)
|
.icon(IconName::ExternalLink)
|
||||||
.icon_position(IconPosition::End)
|
.icon_position(IconPosition::End)
|
||||||
.icon_size(IconSize::Small)
|
.icon_size(IconSize::Small)
|
||||||
.on_click(open_community_repo),
|
.on_click(open_zed_repo),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
h_flex()
|
h_flex()
|
||||||
|
|
|
@ -144,4 +144,4 @@ The telemetry settings can also be configured via the `welcome` screen, which ca
|
||||||
|
|
||||||
### Concerns and Questions
|
### Concerns and Questions
|
||||||
|
|
||||||
If you have concerns about telemetry, please feel free to open issues in our [community repository](https://github.com/zed-industries/zed/issues/new/choose).
|
If you have concerns about telemetry, please feel free to open issues in our [Zed repository](https://github.com/zed-industries/zed/issues/new/choose).
|
||||||
|
|
Loading…
Reference in a new issue