assistant panel: Use feature flag for Zed Pro mentions (#15903)

This removes Zed Pro mentions.

Release Notes:

- N/A

Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
Thorsten Ball 2024-08-07 14:44:00 +02:00 committed by GitHub
parent f24f601e05
commit 94028290cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 28 deletions

View file

@ -2447,10 +2447,10 @@ impl ContextEditor {
}
fn render_notice(&self, cx: &mut ViewContext<Self>) -> Option<AnyElement> {
let nudge = self
.assistant_panel
.upgrade()
.map(|assistant_panel| assistant_panel.read(cx).show_zed_ai_notice);
use feature_flags::FeatureFlagAppExt;
let nudge = self.assistant_panel.upgrade().map(|assistant_panel| {
assistant_panel.read(cx).show_zed_ai_notice && cx.has_flag::<feature_flags::ZedPro>()
});
if let Some(error) = self.error_message.clone() {
Some(Self::render_error_popover(error, cx).into_any_element())