Add addon configure dialog

This commit is contained in:
Johannes Zellner
2018-11-20 16:53:42 +01:00
parent d01c46bfee
commit 6e46240fd7
3 changed files with 100 additions and 0 deletions

View File

@@ -693,6 +693,10 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
}).error(defaultErrorHandler(callback));
};
Client.prototype.configureAddon = function (addonName, memoryLimit, callback) {
callback(new Error('not implemented'));
};
Client.prototype.startAddon = function (addon, callback) {
post('/api/v1/addons/' + addon + '/start').success(function (data, status) {
if (status !== 202) return callback(new ClientError(status, data));