fixed status actions not clearing notification read status
This commit is contained in:
parent
fe436e33f2
commit
6fc42b123a
6 changed files with 10 additions and 1 deletions
|
|
@ -540,6 +540,7 @@
|
|||
:status="status"
|
||||
:replying="replying"
|
||||
@toggle-replying="toggleReplying"
|
||||
@interacted="e => $emit('interacted')"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ export default {
|
|||
MuteConfirm
|
||||
},
|
||||
props: ['button', 'status'],
|
||||
emits: ['interacted'],
|
||||
mounted () {
|
||||
if (this.button.name === 'mute') {
|
||||
this.$store.dispatch('fetchDomainMutes')
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@
|
|||
:button="button"
|
||||
:status="status"
|
||||
v-bind="$attrs"
|
||||
@interacted="e => $emit('interacted')"
|
||||
/>
|
||||
<teleport to="#modal">
|
||||
<MuteConfirm
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ library.add(
|
|||
|
||||
const StatusActionButtons = {
|
||||
props: ['status', 'replying'],
|
||||
emits: ['toggleReplying'],
|
||||
emits: ['toggleReplying', 'interacted'],
|
||||
data () {
|
||||
return {
|
||||
showPin: false,
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue