review/naming + bugfix for stickers
This commit is contained in:
parent
9bd0ed7912
commit
3505e53756
5 changed files with 27 additions and 13 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
</span>
|
||||
</span>
|
||||
<span
|
||||
v-if="stickerPicker"
|
||||
v-if="stickerPickerEnabled"
|
||||
class="additional-tabs"
|
||||
>
|
||||
<span
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue