From d0d421ca5f0359b84011ea41ef34b0a9fdae46f3 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Wed, 26 Feb 2020 17:28:38 +0300 Subject: [PATCH] Add missing computed properties in emoji section --- src/views/emojiPacks/components/NewEmojiUploader.vue | 3 +++ src/views/emojiPacks/components/SingleEmojiEditor.vue | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/views/emojiPacks/components/NewEmojiUploader.vue b/src/views/emojiPacks/components/NewEmojiUploader.vue index 8bb431a2..f364b49e 100644 --- a/src/views/emojiPacks/components/NewEmojiUploader.vue +++ b/src/views/emojiPacks/components/NewEmojiUploader.vue @@ -44,6 +44,9 @@ export default { isDesktop() { return this.$store.state.app.device === 'desktop' }, + isMobile() { + return this.$store.state.app.device === 'mobile' + }, shortcodePresent() { return this.shortcode.trim() === '' } diff --git a/src/views/emojiPacks/components/SingleEmojiEditor.vue b/src/views/emojiPacks/components/SingleEmojiEditor.vue index d66bd48d..cd0eeb7f 100644 --- a/src/views/emojiPacks/components/SingleEmojiEditor.vue +++ b/src/views/emojiPacks/components/SingleEmojiEditor.vue @@ -95,6 +95,9 @@ export default { isDesktop() { return this.$store.state.app.device === 'desktop' }, + isMobile() { + return this.$store.state.app.device === 'mobile' + }, localPacks() { return this.$store.state.emojiPacks.localPacks },