Skip to content
Snippets Groups Projects
Commit bac50fe6 authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Remove sorting local emoji packs

parent acf90129
Branches
Tags
1 merge request!137Implement emoji packs pagination
......@@ -43,9 +43,9 @@
<new-emoji-uploader :pack-name="name"/>
</el-collapse-item>
<el-collapse-item :title=" $t('emoji.manageEmoji')" name="manageEmoji" class="no-background">
<div v-if="pack.files && sortedFiles.length > 0">
<div v-if="pack.files && Object.keys(pack.files).length > 0">
<single-emoji-editor
v-for="[shortcode, file] in sortedFiles"
v-for="(file, shortcode) in pack.files"
:key="shortcode"
:host="host"
:pack-name="name"
......@@ -126,10 +126,6 @@ export default {
pageSize() {
return this.$store.state.emojiPacks.filesPageSize
},
sortedFiles() {
return Object.keys(this.pack.files).sort((a, b) => a.localeCompare(b))
.map(key => [key, this.pack.files[key]])
},
share: {
get() { return this.pack.pack['share-files'] },
set(value) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment