perf: use v-once in emoji picker window
Some checks failed
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/pr/test Pipeline failed

This commit is contained in:
vib 2022-08-28 18:49:13 +03:00
parent 7b33ee807e
commit 62ff65fbf4
Signed by untrusted user: vib
GPG key ID: D6A57F213CA77C57

View file

@ -59,11 +59,11 @@
</div>
</section>
</div>
<div>
<div v-once>
<header class="_panel">{{ i18n.ts.customEmojis }}</header>
<XSection v-for="category in customEmojiCategories" :key="'custom:' + category" :initial-shown="false" :emojis="customEmojis.filter(e => e.category === category).map(e => ':' + e.name + ':')" @chosen="chosen">{{ category || i18n.ts.other }}</XSection>
</div>
<div>
<div v-once>
<header class="_panel">{{ i18n.ts.emoji }}</header>
<XSection v-for="category in categories" :key="category" :emojis="emojilist.filter(e => e.category === category).map(e => e.char)" @chosen="chosen">{{ category }}</XSection>
</div>