forked from AkkomaGang/akkoma-fe
remove sorting because performance
This commit is contained in:
parent
b5cc8ec3ae
commit
6594cdaa63
2 changed files with 1 additions and 12 deletions
|
@ -90,17 +90,6 @@ const StatusContent = {
|
|||
}
|
||||
return true
|
||||
},
|
||||
tagsSorted () {
|
||||
return this.status.tags.sort((a, b) => {
|
||||
if (a.name < b.name) {
|
||||
return -1
|
||||
}
|
||||
if (a.name > b.name) {
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
})
|
||||
},
|
||||
attachmentSize () {
|
||||
if ((this.mergedConfig.hideAttachments && !this.inConversation) ||
|
||||
(this.mergedConfig.hideAttachmentsInConv && this.inConversation) ||
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
|
||||
<div v-if="status.tags.length !== 0">
|
||||
<a
|
||||
v-for="tag in tagsSorted"
|
||||
v-for="tag in status.tags"
|
||||
:key="tag.name"
|
||||
:href="tag.url"
|
||||
class="btn button-default status-tag"
|
||||
|
|
Loading…
Reference in a new issue