diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js index 52579a413..5f612cb9c 100644 --- a/src/components/notification/notification.js +++ b/src/components/notification/notification.js @@ -144,6 +144,7 @@ const Notification = { } }, doApprove() { + this.$emit('interacted') this.$store.state.api.backendInteractor.approveUser({ id: this.user.id }) this.$store.dispatch('removeFollowRequest', this.user) this.$store.dispatch('markSingleNotificationAsSeen', { @@ -165,6 +166,7 @@ const Notification = { } }, doDeny() { + this.$emit('interacted') this.$store.state.api.backendInteractor .denyUser({ id: this.user.id }) .then(() => { diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue index 8d5db1374..7165289dc 100644 --- a/src/components/notification/notification.vue +++ b/src/components/notification/notification.vue @@ -7,7 +7,7 @@ class="Notification" :compact="true" :statusoid="notification.status" - @click="interacted" + @interacted="interacted" />
diff --git a/src/components/status_action_buttons/action_button.js b/src/components/status_action_buttons/action_button.js index 38d2bc3de..3c493b682 100644 --- a/src/components/status_action_buttons/action_button.js +++ b/src/components/status_action_buttons/action_button.js @@ -67,6 +67,7 @@ export default { 'doAction', 'outerClose', ], + emits: ['interacted'], components: { StatusBookmarkFolderMenu, EmojiPicker, @@ -137,6 +138,7 @@ export default { this.button.interactive ? !this.button.interactive(this.funcArg) : false ) return + this.$emit('interacted') if (button.name === 'emoji') { this.$refs.picker.showPicker() } else { diff --git a/src/components/status_action_buttons/action_button_container.js b/src/components/status_action_buttons/action_button_container.js index 0f236b0a9..58b382b26 100644 --- a/src/components/status_action_buttons/action_button_container.js +++ b/src/components/status_action_buttons/action_button_container.js @@ -20,6 +20,7 @@ export default { UserTimedFilterModal, }, props: ['button', 'status'], + emits: ['interacted'], mounted() { if (this.button.name === 'mute') { this.$store.dispatch('fetchDomainMutes') diff --git a/src/components/status_action_buttons/action_button_container.vue b/src/components/status_action_buttons/action_button_container.vue index 4332d3413..b7ff10f3c 100644 --- a/src/components/status_action_buttons/action_button_container.vue +++ b/src/components/status_action_buttons/action_button_container.vue @@ -79,6 +79,7 @@ :button="button" :status="status" v-bind="$attrs" + @interacted="e => $emit('interacted')" />