1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-14 08:54:28 +00:00

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

remove references to v1 projects on account deletion

GitOrigin-RevId: 1e886d6b693f98ee81efc704d2a3688de43981ef
This commit is contained in:
nate stemen 2020-05-21 14:30:49 -04:00 committed by Copybot
parent 49066b6ffe
commit 8ba78bd559
2 changed files with 1 additions and 11 deletions
services/web
app/views/user
frontend/js/main

View file

@ -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")

View file

@ -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() {