fix being unable to (un)block users in some cases
This commit is contained in:
parent
2854b012c9
commit
e3bfbcf0d2
3 changed files with 7 additions and 4 deletions
|
|
@ -38,6 +38,9 @@ const AccountActions = {
|
|||
hideConfirmRemoveUserFromFollowers () {
|
||||
this.showingConfirmRemoveFollower = false
|
||||
},
|
||||
hideConfirmBlock () {
|
||||
this.showingConfirmBlock = false
|
||||
},
|
||||
showRepeats () {
|
||||
this.$store.dispatch('showReblogs', this.user.id)
|
||||
},
|
||||
|
|
@ -56,7 +59,7 @@ const AccountActions = {
|
|||
}
|
||||
},
|
||||
doBlockUser () {
|
||||
this.$store.dispatch('blockUser', this.user.id)
|
||||
this.$store.dispatch('blockUser', { id: this.user.id })
|
||||
this.hideConfirmBlock()
|
||||
},
|
||||
unblockUser () {
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@
|
|||
</Popover>
|
||||
<teleport to="#modal">
|
||||
<confirm-modal
|
||||
v-if="showingConfirmBlock && !blockExpirationSupported"
|
||||
v-if="showingConfirmBlock && blockExpirationSupported"
|
||||
ref="blockDialog"
|
||||
:title="$t('user_card.block_confirm_title')"
|
||||
:confirm-text="$t('user_card.block_confirm_accept_button')"
|
||||
|
|
@ -138,7 +138,7 @@
|
|||
</i18n-t>
|
||||
</confirm-modal>
|
||||
<UserTimedFilterModal
|
||||
v-if="blockExpirationSupported"
|
||||
v-if="!blockExpirationSupported"
|
||||
ref="timedBlockDialog"
|
||||
:is-mute="false"
|
||||
:user="user"
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ const BlockCard = {
|
|||
if (this.blockExpirationSupported) {
|
||||
this.$refs.timedBlockDialog.optionallyPrompt()
|
||||
} else {
|
||||
this.$store.dispatch('blockUser', this.user.id)
|
||||
this.$store.dispatch('blockUser', { id: this.user.id })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue