Filtered
-
-
+
Filtered
+
+
@@ -37,7 +37,7 @@
-
+
{{ $t('cards.toot.show_more') }}
@@ -48,19 +48,19 @@
-
+
-
+
{{ $t('cards.toot.sensitive') }}
-
+
-
+
-
+
-
+
-
-
-
- +
- {{ $t('cards.toot.view_toot_detail') }}
- @@ -208,7 +225,7 @@
+
@@ -250,6 +267,8 @@ import { ACTION_TYPES as MUTE_ACTION } from '@/store/TimelineSpace/Modals/MuteCo
import { ACTION_TYPES as VIEWER_ACTION } from '@/store/TimelineSpace/Modals/ImageViewer'
import { ACTION_TYPES } from '@/store/organisms/Toot'
+const defaultEmojiIndex = new EmojiIndex(data)
+
export default defineComponent({
name: 'toot',
components: {
@@ -296,7 +315,8 @@ export default defineComponent({
const showContent = ref(store.state.App.ignoreCW)
const showAttachments = ref(store.state.App.ignoreNSFW)
const hideAllAttachments = ref(store.state.App.hideAllAttachments)
- const emojiIndex = new EmojiIndex(data)
+ const emojiPickerOpened = ref(false)
+ const emojiIndex = defaultEmojiIndex
const displayNameStyle = computed(() => store.state.App.displayNameStyle)
const timeFormat = computed(() => store.state.App.timeFormat)
@@ -600,6 +620,12 @@ export default defineComponent({
showAttachments.value = !showAttachments.value
ctx.emit('sizeChanged', true)
}
+ const emojiPickerShow = () => {
+ emojiPickerOpened.value = true
+ }
+ const emojiPickerHide = () => {
+ emojiPickerOpened.value = false
+ }
return {
emojiIndex,
@@ -651,7 +677,10 @@ export default defineComponent({
removeReaction,
openQuote,
toggleSpoiler,
- toggleCW
+ toggleCW,
+ emojiPickerOpened,
+ emojiPickerShow,
+ emojiPickerHide
}
}
})
{{ $t('cards.toot.via', { application: application }) }}