diff --git a/src/js/client.js b/src/js/client.js index c65bce1eb..50b1eb344 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -1853,6 +1853,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout // amend properties to mimick full app data.applinks.forEach(function (applink) { + applink.type = 'applink'; applink.fqdn = applink.upstreamUri; // this fqdn may contain the protocol! applink.manifest = { addons: {}}; applink.installationState = ISTATES.INSTALLED; @@ -1879,6 +1880,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }); }; + Client.prototype.removeApplink = function (id, callback) { + del('/api/v1/applinks/' + id, null, function (error, data, status) { + if (error) return callback(error); + if (status !== 204) return callback(new ClientError(status, data)); + + callback(null); + }); + }; + Client.prototype.addUser = function (user, callback) { var data = { email: user.email, diff --git a/src/views/apps.html b/src/views/apps.html index c9024d47c..c77b275d9 100644 --- a/src/views/apps.html +++ b/src/views/apps.html @@ -56,6 +56,32 @@ + + +
@@ -99,7 +125,8 @@