Skip to content

Commit

Permalink
Merge pull request #545 from h3poteto/iss-541
Browse files Browse the repository at this point in the history
closes #541 Fix boost icon when the toot is direct
  • Loading branch information
h3poteto authored Aug 20, 2018
2 parents 937d13b + 63dde1d commit 7f04f1f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/renderer/components/TimelineSpace/Contents/Cards/Toot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@
<el-button v-show="locked(message)" type="text" class="locked">
<icon name="lock" scale="0.9"></icon>
</el-button>
<el-button v-show="!locked(message)" type="text" @click="changeReblog(originalMessage(message))" :class="originalMessage(message).reblogged ? 'reblogged' : 'reblog'">
<el-button v-show="directed(message)" type="text" class="directed">
<icon name="envelope" scale="0.9"></icon>
</el-button>
<el-button v-show="!locked(message)&&!directed(message)" type="text" @click="changeReblog(originalMessage(message))" :class="originalMessage(message).reblogged ? 'reblogged' : 'reblog'">
<icon name="retweet" scale="0.9"></icon>
</el-button>
<span class="count">
Expand Down Expand Up @@ -339,7 +342,10 @@ export default {
return this.filter.length > 0 && this.originalMessage(message).content.search(this.filter) >= 0
},
locked (message) {
return message.visibility === 'private' || message.visibility === 'direct'
return message.visibility === 'private'
},
directed (message) {
return message.visibility === 'direct'
},
status (message) {
const original = this.originalMessage(message)
Expand Down

0 comments on commit 7f04f1f

Please sign in to comment.