mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Merge branch 'appconfig_ui' of github.com:cryptpad/cryptpad into appconfig_ui
This commit is contained in:
commit
0072aaa8a5
@ -1012,7 +1012,7 @@ var uploadLogo = (Env, Server, cb, data, unsafeKey) => {
|
||||
var changeColor = (Env, Server, cb, data, unsafeKey) => {
|
||||
const args = Array.isArray(data) && data[1];
|
||||
if (!args || typeof(args) !== 'object') { return void cb("EINVAL"); }
|
||||
let color = args.color || args.selectedColor;
|
||||
let color = args.color;
|
||||
adminDecree(Env, null, function (err) {
|
||||
if (err) { return void cb(err); }
|
||||
Env.flushCache();
|
||||
|
||||
@ -168,7 +168,7 @@ define([
|
||||
let hex = Util.rgbToHex(rgb);
|
||||
selectorColor = hex;
|
||||
// XXX Save only at the end
|
||||
sendAdminRpc('CHANGE_COLOR', {selectedColor}, function (e, response) {
|
||||
sendAdminRpc('CHANGE_COLOR', {color:selectedColor}, function (e, response) {
|
||||
if (e || response.error) {
|
||||
UI.warn(Messages.error);
|
||||
console.error(e, response);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user