don't create color-picker if readonly
This commit is contained in:
@@ -338,12 +338,12 @@ window.canvas = canvas;
|
|||||||
});
|
});
|
||||||
$rightside.append($forget);
|
$rightside.append($forget);
|
||||||
|
|
||||||
makeColorButton($rightside);
|
|
||||||
|
|
||||||
var editHash;
|
var editHash;
|
||||||
|
|
||||||
if (!readOnly) {
|
if (!readOnly) {
|
||||||
editHash = Cryptpad.getEditHashFromKeys(info.channel, secret.keys);
|
editHash = Cryptpad.getEditHashFromKeys(info.channel, secret.keys);
|
||||||
|
makeColorButton($rightside);
|
||||||
}
|
}
|
||||||
if (!readOnly) { Cryptpad.replaceHash(editHash); }
|
if (!readOnly) { Cryptpad.replaceHash(editHash); }
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user