1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-01-30 17:15:16 +01:00

refs #255 Show reblogs count in toot

This commit is contained in:
AkiraFukushima 2018-04-29 09:40:02 +09:00
parent a655502b7c
commit a63efcf105

View File

@ -36,6 +36,9 @@
<el-button type="text" @click="changeReblog(originalMessage(message))" :class="originalMessage(message).reblogged ? 'reblogged' : 'reblog'">
<icon name="retweet" scale="0.9"></icon>
</el-button>
<span class="count">
{{ reblogsCount(message) }}
</span>
<el-button type="text" @click="changeFavourite(originalMessage(message))" :class="originalMessage(message).favourited ? 'favourited animated bounceIn' : 'favourite'">
<icon name="star" scale="0.9"></icon>
</el-button>
@ -206,6 +209,12 @@ export default {
},
mediaAttachements (message) {
return this.originalMessage(message).media_attachments
},
reblogsCount (message) {
if (this.originalMessage(message).reblogs_count > 0) {
return this.originalMessage(message).reblogs_count
}
return ''
}
}
}
@ -325,6 +334,12 @@ function findLink (target) {
color: #e6a23c;
}
.count {
font-size: 0.8em;
color: #909399;
margin: 0 0 4px -8px;
}
.toot-menu {
padding-right: 8px;