diff --git a/src/js/client.js b/src/js/client.js index 44847afcf..e76bf8c27 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -398,8 +398,8 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }); }; - Client.prototype.restoreApp = function (appId, backupId, password, callback) { - var data = { password: password, backupId: backupId }; + Client.prototype.restoreApp = function (appId, backupId, callback) { + var data = { backupId: backupId }; post('/api/v1/apps/' + appId + '/restore', data, null, function (error, data, status) { if (error) return callback(error); @@ -420,8 +420,8 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }); }; - Client.prototype.uninstallApp = function (appId, password, callback) { - var data = { password: password }; + Client.prototype.uninstallApp = function (appId, callback) { + var data = {}; post('/api/v1/apps/' + appId + '/uninstall', data, null, function (error, data, status) { if (error) return callback(error); diff --git a/src/views/apps.html b/src/views/apps.html index 0e916790a..dd6b92060 100644 --- a/src/views/apps.html +++ b/src/views/apps.html @@ -256,16 +256,6 @@
-
-
-
- -
Wrong password
- -
- -
-
@@ -334,7 +324,7 @@ @@ -431,34 +421,20 @@