From e9f47509ae99b14a0392c906d186b5a45feaadbf Mon Sep 17 00:00:00 2001 From: Sol Fisher Romanoff <sol@solfisher.com> Date: Tue, 3 Jan 2023 16:04:26 +0200 Subject: [PATCH] Only show "keep open" emoji checkbox on post form --- src/components/emoji_input/emoji_input.vue | 1 + src/components/emoji_picker/emoji_picker.js | 5 +++++ src/components/emoji_picker/emoji_picker.vue | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/emoji_input/emoji_input.vue b/src/components/emoji_input/emoji_input.vue index 078253c2..d4760edc 100644 --- a/src/components/emoji_input/emoji_input.vue +++ b/src/components/emoji_input/emoji_input.vue @@ -18,6 +18,7 @@ <EmojiPicker v-if="enableEmojiPicker" ref="picker" + show-keep-open :class="{ hide: !showPicker }" :enable-sticker-picker="enableStickerPicker" class="emoji-picker-panel" diff --git a/src/components/emoji_picker/emoji_picker.js b/src/components/emoji_picker/emoji_picker.js index 6617a937..fbd59946 100644 --- a/src/components/emoji_picker/emoji_picker.js +++ b/src/components/emoji_picker/emoji_picker.js @@ -27,6 +27,11 @@ const EmojiPicker = { required: false, type: Boolean, default: false + }, + showKeepOpen: { + required: false, + type: Boolean, + default: false } }, data () { diff --git a/src/components/emoji_picker/emoji_picker.vue b/src/components/emoji_picker/emoji_picker.vue index 00ffb9d2..3ec694f0 100644 --- a/src/components/emoji_picker/emoji_picker.vue +++ b/src/components/emoji_picker/emoji_picker.vue @@ -84,7 +84,10 @@ <span :ref="'group-end-' + group.id" /> </div> </div> - <div class="keep-open"> + <div + v-if="showKeepOpen" + class="keep-open" + > <Checkbox v-model="keepOpen"> {{ $t('emoji.keep_open') }} </Checkbox>