Add floating status-previews on reply-link mouseover in conversations and make them optional in the settings, fix a small visual inconsistency in muted statuses while editing the file already..

This commit is contained in:
Shpuld Shpuldson 2017-06-07 17:58:24 +03:00
parent 449a466ef2
commit f915ae174d
8 changed files with 80 additions and 10 deletions

View file

@ -10,7 +10,12 @@ const sortAndFilterConversation = (conversation) => {
const conversation = {
data () {
return {
highlight: null
highlight: null,
preview: {
x: 0,
y: 0,
status
}
}
},
props: [
@ -76,6 +81,16 @@ const conversation = {
},
setHighlight (id) {
this.highlight = Number(id)
},
setPreview (id, x, y) {
if (id) {
this.preview.x = x
this.preview.y = y
this.preview.status = filter(this.conversation, { id: id })[0]
console.log(this.preview.status)
} else {
this.preview.status = null
}
}
}
}