WIP erase chat history button

This commit is contained in:
ansuz
2017-07-20 17:04:11 +02:00
parent 128d5b2c6d
commit dd98e2222a
2 changed files with 12 additions and 5 deletions

View File

@@ -289,9 +289,11 @@ define([
var $avatar = $('<div>', {'class': 'avatar'}).appendTo($header);
var $removeHistory = $('<button>', {
'class': 'remove-history'
}).text('remove chat history').click(function () {
var $removeHistory = $('<span>', {
'class': 'remove-history fa fa-eraser'
})
// TODO set title
.click(function () {
Cryptpad.confirm(common.Messages.contacts_confirmRemoveHistory, function (yes) {
if (!yes) { return; }
Cryptpad.clearOwnedChannel(data.channel, function (e) {