diff --git a/src/js/client.js b/src/js/client.js index 01151fd51..a4f1cf49b 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -469,6 +469,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }); }; + Client.prototype.repairApp = function (id, data, callback) { + post('/api/v1/apps/' + id + '/configure/repair', data, null, function (error, data, status) { + if (error) return callback(error); + if (status !== 200 && status !== 202) return callback(new ClientError(status, data)); + + callback(null, data); + }); + }; + Client.prototype.updateApp = function (id, manifest, callback) { var data = { appStoreId: manifest.id + '@' + manifest.version diff --git a/src/views/app.html b/src/views/app.html index 28a33b10e..1863fd5de 100644 --- a/src/views/app.html +++ b/src/views/app.html @@ -83,25 +83,56 @@