WIP erase chat history button

pull/1/head
ansuz 7 years ago
parent 128d5b2c6d
commit dd98e2222a

@ -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) {

@ -116,12 +116,17 @@ body {
display: flex;
justify-content: space-between;
align-items: center;
.avatar,
.right-col {
flex:1 1 auto; //; // 1 auto;
flex:1 1 auto;
}
.remove-history {
// TODO
height: 100%;
&:hover {
background-color: lighten(@bg-color, 20%);
}
}
}

Loading…
Cancel
Save