add ui to enable/disable ipv6
This commit is contained in:
@@ -949,6 +949,23 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.setIPv6Config = function (enabled, callback) {
|
||||
post('/api/v1/settings/ipv6', { 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.getIPv6Config = function (callback) {
|
||||
get('/api/v1/settings/ipv6', null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
callback(null, data.enabled);
|
||||
});
|
||||
};
|
||||
|
||||
// branding
|
||||
Client.prototype.setFooter = function (footer, callback) {
|
||||
post('/api/v1/branding/footer', { footer: footer }, null, function (error, data, status) {
|
||||
|
||||
Reference in New Issue
Block a user