Optional feedback on account deletion (#8750)

* Fixed rebase.

* Removed commented out mail sending to pass linting. Styles from settings.styl still not propagating to app.css

* fix(feedback): address PR comments

* fix(style): linting errors
This commit is contained in:
Sabe Jones
2017-05-30 11:54:42 -05:00
committed by GitHub
parent 05ea2c1ce6
commit 46ed1813c6
7 changed files with 92 additions and 11 deletions

View File

@@ -187,11 +187,11 @@ habitrpg.controller('SettingsCtrl',
$rootScope.$state.go('tasks');
}
$scope['delete'] = function(password) {
$scope.delete = function(password, feedback) {
$http({
url: ApiUrl.get() + '/api/v3/user',
method: 'DELETE',
data: {password: password},
data: {password: password, feedback: feedback},
})
.then(function(res, code) {
localStorage.clear();