Add settings UI to enable unstable apps listing
This commit is contained in:
@@ -544,6 +544,22 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.setUnstableAppsConfig = function (enabled, callback) {
|
||||
post('/api/v1/settings/unstable_apps', { enabled: enabled }, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
callback(null);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.getUnstableAppsConfig = function (callback) {
|
||||
get('/api/v1/settings/unstable_apps', null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
callback(null, data.enabled);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.getUpdateInfo = function (callback) {
|
||||
get('/api/v1/cloudron/update', null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
|
||||
Reference in New Issue
Block a user