fixed status actions not clearing notification read status

This commit is contained in:
Henry Jameson 2025-03-05 02:08:57 +02:00
commit 6fc42b123a
6 changed files with 10 additions and 1 deletions

View file

@ -540,6 +540,7 @@
:status="status"
:replying="replying"
@toggle-replying="toggleReplying"
@interacted="e => $emit('interacted')"
/>
</div>
</div>

View file

@ -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 {

View file

@ -22,6 +22,7 @@ export default {
MuteConfirm
},
props: ['button', 'status'],
emits: ['interacted'],
mounted () {
if (this.button.name === 'mute') {
this.$store.dispatch('fetchDomainMutes')

View file

@ -79,6 +79,7 @@
:button="button"
:status="status"
v-bind="$attrs"
@interacted="e => $emit('interacted')"
/>
<teleport to="#modal">
<MuteConfirm

View file

@ -18,7 +18,7 @@ library.add(
const StatusActionButtons = {
props: ['status', 'replying'],
emits: ['toggleReplying'],
emits: ['toggleReplying', 'interacted'],
data () {
return {
showPin: false,

View file

@ -17,6 +17,7 @@
:get-component="getComponent"
:close="() => {}"
:do-action="doAction"
@interacted="e => $emit('interacted')"
/>
<button
v-if="showPin && currentUser"
@ -88,6 +89,7 @@
:get-component="getComponent"
:outerClose="close"
:do-action="doAction"
@interacted="e => $emit('interacted')"
/>
<button
v-if="showPin && currentUser"