Add missing computed properties in emoji section

This commit is contained in:
Angelina Filippova 2020-02-26 17:28:38 +03:00
parent 9508c2c114
commit d0d421ca5f
2 changed files with 6 additions and 0 deletions

View file

@ -44,6 +44,9 @@ export default {
isDesktop() { isDesktop() {
return this.$store.state.app.device === 'desktop' return this.$store.state.app.device === 'desktop'
}, },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
shortcodePresent() { shortcodePresent() {
return this.shortcode.trim() === '' return this.shortcode.trim() === ''
} }

View file

@ -95,6 +95,9 @@ export default {
isDesktop() { isDesktop() {
return this.$store.state.app.device === 'desktop' return this.$store.state.app.device === 'desktop'
}, },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
localPacks() { localPacks() {
return this.$store.state.emojiPacks.localPacks return this.$store.state.emojiPacks.localPacks
}, },