review/naming + bugfix for stickers

This commit is contained in:
Henry Jameson 2019-09-12 20:36:43 +03:00
parent 9bd0ed7912
commit 3505e53756
5 changed files with 27 additions and 13 deletions

View file

@ -5,7 +5,7 @@ const filterByKeyword = (list, keyword = '') => {
const EmojiPicker = {
props: {
stickerPicker: {
enableStickerPicker: {
required: false,
type: Boolean,
default: false
@ -97,6 +97,9 @@ const EmojiPicker = {
},
emojisView () {
return this.emojis.filter(value => value.emojis.length > 0)
},
stickerPickerEnabled () {
return (this.$store.state.instance.stickers || []).length !== 0
}
}
}

View file

@ -17,7 +17,7 @@
</span>
</span>
<span
v-if="stickerPicker"
v-if="stickerPickerEnabled"
class="additional-tabs"
>
<span