Change computed to directed in toot

This commit is contained in:
AkiraFukushima 2019-01-24 00:15:53 +09:00
parent 7874efc1f7
commit 8f375c7a54
1 changed files with 5 additions and 5 deletions

View File

@ -79,10 +79,10 @@
<el-button v-show="locked" type="text" class="locked"> <el-button v-show="locked" type="text" class="locked">
<icon name="lock" scale="0.9"></icon> <icon name="lock" scale="0.9"></icon>
</el-button> </el-button>
<el-button v-show="directed(message)" type="text" class="directed"> <el-button v-show="directed" type="text" class="directed">
<icon name="envelope" scale="0.9"></icon> <icon name="envelope" scale="0.9"></icon>
</el-button> </el-button>
<el-button v-show="!locked&&!directed(message)" type="text" @click="changeReblog(originalMessage)" :class="originalMessage.reblogged ? 'reblogged' : 'reblog'" :title="$t('cards.toot.reblog')"> <el-button v-show="!locked&&!directed" type="text" @click="changeReblog(originalMessage)" :class="originalMessage.reblogged ? 'reblogged' : 'reblog'" :title="$t('cards.toot.reblog')">
<icon name="retweet" scale="0.9"></icon> <icon name="retweet" scale="0.9"></icon>
</el-button> </el-button>
<span class="count"> <span class="count">
@ -249,6 +249,9 @@ export default {
}, },
locked: function () { locked: function () {
return this.message.visibility === 'private' return this.message.visibility === 'private'
},
directed: function () {
return this.message.visibility === 'direct'
} }
}, },
mounted () { mounted () {
@ -451,9 +454,6 @@ export default {
}) })
}) })
}, },
directed (message) {
return message.visibility === 'direct'
},
status () { status () {
const original = this.originalMessage const original = this.originalMessage
return emojify(original.content, original.emojis) return emojify(original.content, original.emojis)