Add footer branding configuration
This commit is contained in:
+20
-3
@@ -683,6 +683,24 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.setFooter = function (footer, callback) {
|
||||
post('/api/v1/settings/footer', { footer: footer }, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
callback(null);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.getFooter = function (callback) {
|
||||
get('/api/v1/settings/footer', null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
callback(null, data.footer);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.setUnstableAppsConfig = function (enabled, callback) {
|
||||
post('/api/v1/settings/unstable_apps', { enabled: enabled }, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
@@ -1948,12 +1966,11 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
};
|
||||
|
||||
// Email
|
||||
Client.prototype.getMailEventLogs = function (search, page, perPage, callback) {
|
||||
Client.prototype.getMailEventLogs = function (page, perPage, callback) {
|
||||
var config = {
|
||||
params: {
|
||||
page: page,
|
||||
per_page: perPage,
|
||||
search: search
|
||||
per_page: perPage
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user