removed useless code, review change, fixed bug with tall statuses

This commit is contained in:
Henry Jameson 2021-08-15 02:41:53 +03:00
parent 4465de5241
commit 530ac4442b
4 changed files with 45 additions and 51 deletions

View file

@ -1,6 +1,8 @@
import MentionLink from 'src/components/mention_link/mention_link.vue'
import { mapGetters } from 'vuex'
export const MENTIONS_LIMIT = 5
const MentionsLine = {
name: 'MentionsLine',
props: {
@ -14,14 +16,11 @@ const MentionsLine = {
MentionLink
},
computed: {
limit () {
return 5
},
mentionsComputed () {
return this.mentions.slice(0, this.limit)
return this.mentions.slice(0, MENTIONS_LIMIT)
},
extraMentions () {
return this.mentions.slice(this.limit)
return this.mentions.slice(MENTIONS_LIMIT)
},
manyMentions () {
return this.extraMentions.length > 0