WIP erase chat history button
This commit is contained in:
parent
128d5b2c6d
commit
dd98e2222a
@ -289,9 +289,11 @@ define([
|
|||||||
|
|
||||||
var $avatar = $('<div>', {'class': 'avatar'}).appendTo($header);
|
var $avatar = $('<div>', {'class': 'avatar'}).appendTo($header);
|
||||||
|
|
||||||
var $removeHistory = $('<button>', {
|
var $removeHistory = $('<span>', {
|
||||||
'class': 'remove-history'
|
'class': 'remove-history fa fa-eraser'
|
||||||
}).text('remove chat history').click(function () {
|
})
|
||||||
|
// TODO set title
|
||||||
|
.click(function () {
|
||||||
Cryptpad.confirm(common.Messages.contacts_confirmRemoveHistory, function (yes) {
|
Cryptpad.confirm(common.Messages.contacts_confirmRemoveHistory, function (yes) {
|
||||||
if (!yes) { return; }
|
if (!yes) { return; }
|
||||||
Cryptpad.clearOwnedChannel(data.channel, function (e) {
|
Cryptpad.clearOwnedChannel(data.channel, function (e) {
|
||||||
|
|||||||
@ -116,12 +116,17 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.avatar,
|
.avatar,
|
||||||
.right-col {
|
.right-col {
|
||||||
flex:1 1 auto; //; // 1 auto;
|
flex:1 1 auto;
|
||||||
}
|
}
|
||||||
.remove-history {
|
.remove-history {
|
||||||
// TODO
|
height: 100%;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: lighten(@bg-color, 20%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user