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"
|
:status="status"
|
||||||
:replying="replying"
|
:replying="replying"
|
||||||
@toggle-replying="toggleReplying"
|
@toggle-replying="toggleReplying"
|
||||||
|
@interacted="e => $emit('interacted')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,9 @@ export default {
|
||||||
'doAction',
|
'doAction',
|
||||||
'outerClose'
|
'outerClose'
|
||||||
],
|
],
|
||||||
|
emits: [
|
||||||
|
'interacted'
|
||||||
|
],
|
||||||
components: {
|
components: {
|
||||||
StatusBookmarkFolderMenu,
|
StatusBookmarkFolderMenu,
|
||||||
EmojiPicker,
|
EmojiPicker,
|
||||||
|
|
@ -121,6 +124,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doActionWrap (button, close = () => {}) {
|
doActionWrap (button, close = () => {}) {
|
||||||
|
this.$emit('interacted')
|
||||||
if (button.name === 'emoji') {
|
if (button.name === 'emoji') {
|
||||||
this.$refs.picker.showPicker()
|
this.$refs.picker.showPicker()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ export default {
|
||||||
MuteConfirm
|
MuteConfirm
|
||||||
},
|
},
|
||||||
props: ['button', 'status'],
|
props: ['button', 'status'],
|
||||||
|
emits: ['interacted'],
|
||||||
mounted () {
|
mounted () {
|
||||||
if (this.button.name === 'mute') {
|
if (this.button.name === 'mute') {
|
||||||
this.$store.dispatch('fetchDomainMutes')
|
this.$store.dispatch('fetchDomainMutes')
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@
|
||||||
:button="button"
|
:button="button"
|
||||||
:status="status"
|
:status="status"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
|
@interacted="e => $emit('interacted')"
|
||||||
/>
|
/>
|
||||||
<teleport to="#modal">
|
<teleport to="#modal">
|
||||||
<MuteConfirm
|
<MuteConfirm
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ library.add(
|
||||||
|
|
||||||
const StatusActionButtons = {
|
const StatusActionButtons = {
|
||||||
props: ['status', 'replying'],
|
props: ['status', 'replying'],
|
||||||
emits: ['toggleReplying'],
|
emits: ['toggleReplying', 'interacted'],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
showPin: false,
|
showPin: false,
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
:get-component="getComponent"
|
:get-component="getComponent"
|
||||||
:close="() => {}"
|
:close="() => {}"
|
||||||
:do-action="doAction"
|
:do-action="doAction"
|
||||||
|
@interacted="e => $emit('interacted')"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
v-if="showPin && currentUser"
|
v-if="showPin && currentUser"
|
||||||
|
|
@ -88,6 +89,7 @@
|
||||||
:get-component="getComponent"
|
:get-component="getComponent"
|
||||||
:outerClose="close"
|
:outerClose="close"
|
||||||
:do-action="doAction"
|
:do-action="doAction"
|
||||||
|
@interacted="e => $emit('interacted')"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
v-if="showPin && currentUser"
|
v-if="showPin && currentUser"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue