Просмотр исходного кода

Merge pull request #2848 from overleaf/ns-account-deletion-v1-references

remove references to v1 projects on account deletion

GitOrigin-RevId: 1e886d6b693f98ee81efc704d2a3688de43981ef
nate stemen 6 лет назад
Родитель
Сommit
8ba78bd559

+ 1 - 9
services/web/app/views/user/settings.pug

@@ -246,21 +246,13 @@ block content
 						ng-keyup="checkValidation()"
 					)
 
-					div.confirmation-checkbox-wrapper
-						input(
-							type="checkbox"
-							ng-model="state.confirmV1Purge"
-							ng-change="checkValidation()"
-						).pull-left
-						label(style="display: inline")  I have left, purged or imported my projects on Overleaf v1 (if any)  
-
 					div.confirmation-checkbox-wrapper
 						input(
 							type="checkbox"
 							ng-model="state.confirmSharelatexDelete"
 							ng-change="checkValidation()"
 						).pull-left
-						label(style="display: inline")  I understand this will delete all projects in my Overleaf v2 account (and ShareLaTeX account, if any) with email address #[em {{ userDefaultEmail }}]
+						label(style="display: inline")  I understand this will delete all projects in my Overleaf account with email address #[em {{ userDefaultEmail }}]
 
 			div(ng-if="state.error")
 				div.alert.alert-danger(ng-switch="state.error.code")

+ 0 - 2
services/web/frontend/js/main/account-settings.js

@@ -59,7 +59,6 @@ App.controller('DeleteAccountModalController', function(
     isValid: false,
     deleteText: '',
     password: '',
-    confirmV1Purge: false,
     confirmSharelatexDelete: false,
     inflight: false,
     error: null
@@ -77,7 +76,6 @@ App.controller('DeleteAccountModalController', function(
       $scope.state.deleteText.toLowerCase() ===
         userDefaultEmail.toLowerCase() &&
       $scope.state.password.length > 0 &&
-      $scope.state.confirmV1Purge &&
       $scope.state.confirmSharelatexDelete)
 
   $scope.delete = function() {