From fe436e33f249d5b3e2cbbb22dcfe7a2e7edf2c1c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 5 Mar 2025 01:42:52 +0200 Subject: [PATCH 01/22] fix error on pinned action buttons --- src/components/status_action_buttons/action_button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/status_action_buttons/action_button.js b/src/components/status_action_buttons/action_button.js index 87c5bb1e5..e722bc31c 100644 --- a/src/components/status_action_buttons/action_button.js +++ b/src/components/status_action_buttons/action_button.js @@ -120,7 +120,7 @@ export default { this.$store.dispatch('reactWithEmoji', { id: this.status.id, emoji }) } }, - doActionWrap (button, close) { + doActionWrap (button, close = () => {}) { if (button.name === 'emoji') { this.$refs.picker.showPicker() } else { From 6fc42b123aed11e176f29b65008e5d39bd26bab0 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 5 Mar 2025 02:08:57 +0200 Subject: [PATCH 02/22] fixed status actions not clearing notification read status --- src/components/status/status.vue | 1 + src/components/status_action_buttons/action_button.js | 4 ++++ .../status_action_buttons/action_button_container.js | 1 + .../status_action_buttons/action_button_container.vue | 1 + src/components/status_action_buttons/status_action_buttons.js | 2 +- .../status_action_buttons/status_action_buttons.vue | 2 ++ 6 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/status/status.vue b/src/components/status/status.vue index e78b0931a..d0af91aef 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -540,6 +540,7 @@ :status="status" :replying="replying" @toggle-replying="toggleReplying" + @interacted="e => $emit('interacted')" /> diff --git a/src/components/status_action_buttons/action_button.js b/src/components/status_action_buttons/action_button.js index e722bc31c..07affaafe 100644 --- a/src/components/status_action_buttons/action_button.js +++ b/src/components/status_action_buttons/action_button.js @@ -67,6 +67,9 @@ export default { 'doAction', 'outerClose' ], + emits: [ + 'interacted' + ], components: { StatusBookmarkFolderMenu, EmojiPicker, @@ -121,6 +124,7 @@ export default { } }, doActionWrap (button, close = () => {}) { + 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 bd91b9404..313e3022f 100644 --- a/src/components/status_action_buttons/action_button_container.js +++ b/src/components/status_action_buttons/action_button_container.js @@ -22,6 +22,7 @@ export default { MuteConfirm }, 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 deada02ae..931a40349 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')" />