Add footer branding configuration

This commit is contained in:
Johannes Zellner
2020-02-14 15:34:44 +01:00
parent 0a126a15ba
commit 4283046e76
3 changed files with 60 additions and 6 deletions
+20 -3
View File
@@ -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
}
};