WIP erase chat history button
This commit is contained in:
1 parent
128d5b2c6d
commit
dd98e2222a
2 files changed
+12
-5
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user