onboarding: Remove accept AI ToS from within Zed (#36612)
Users now accept ToS from Zed's website when they sign in to Zed the first time. So it's no longer possible that a signed in account could not have accepted the ToS. Release Notes: - N/A --------- Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
parent
3d2fa72d1f
commit
8204ef1e51
16 changed files with 44 additions and 499 deletions
|
@ -118,12 +118,8 @@ impl Dismissable for ZedPredictUpsell {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn should_show_upsell_modal(user_store: &Entity<UserStore>, cx: &App) -> bool {
|
||||
if user_store.read(cx).has_accepted_terms_of_service() {
|
||||
!ZedPredictUpsell::dismissed()
|
||||
} else {
|
||||
true
|
||||
}
|
||||
pub fn should_show_upsell_modal() -> bool {
|
||||
!ZedPredictUpsell::dismissed()
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
@ -1547,16 +1543,6 @@ impl edit_prediction::EditPredictionProvider for ZetaEditPredictionProvider {
|
|||
) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn needs_terms_acceptance(&self, cx: &App) -> bool {
|
||||
!self
|
||||
.zeta
|
||||
.read(cx)
|
||||
.user_store
|
||||
.read(cx)
|
||||
.has_accepted_terms_of_service()
|
||||
}
|
||||
|
||||
fn is_refreshing(&self) -> bool {
|
||||
!self.pending_completions.is_empty()
|
||||
}
|
||||
|
@ -1569,10 +1555,6 @@ impl edit_prediction::EditPredictionProvider for ZetaEditPredictionProvider {
|
|||
_debounce: bool,
|
||||
cx: &mut Context<Self>,
|
||||
) {
|
||||
if self.needs_terms_acceptance(cx) {
|
||||
return;
|
||||
}
|
||||
|
||||
if self.zeta.read(cx).update_required {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue