Get the channel history

This commit is contained in:
yflory
2017-04-14 18:36:36 +02:00
parent 525d35c9ec
commit 43c045721c
6 changed files with 211 additions and 2 deletions

View File

@@ -402,6 +402,21 @@ define([
editHash = Cryptpad.getEditHashFromKeys(info.channel, secret.keys);
}
/* add an export button */
var $hist = Cryptpad.createButton();
var historyRender = function () {};
var historyClose = function () {
// TODO: enable onlocal, onremote... (or at least the display part)
};
var historyTodo = function (hist) {
hist.display($bar, historyRender, historyClose);
};
$hist.removeClass('fa-question').addClass('fa-history').click(function () {
// TODO: disable onlocal, onremote...
Cryptpad.getHistory(historyTodo);
});
$rightside.append($hist);
/* save as template */
if (!Cryptpad.isTemplate(window.location.href)) {
var templateObj = {