aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_card/user_card.js
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-09-21 16:24:47 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-09-21 16:24:47 +0300
commit8721fb57fc3ee169ba401ce498280b8d7257297d (patch)
tree02cccad7497b39ef44b4ee1d7c284f1ead341944 /src/components/user_card/user_card.js
parent9b163d281670e0c0a589adce46727284fbcba0ad (diff)
added support hide\show reblogs from a specific user
Diffstat (limited to 'src/components/user_card/user_card.js')
-rw-r--r--src/components/user_card/user_card.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js
index e3bd7697..03f15d8e 100644
--- a/src/components/user_card/user_card.js
+++ b/src/components/user_card/user_card.js
@@ -7,7 +7,9 @@ import { requestFollow, requestUnfollow } from '../../services/follow_manipulate
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
export default {
- props: [ 'user', 'switcher', 'selected', 'hideBio', 'rounded', 'bordered', 'allowZoomingAvatar' ],
+ props: [
+ 'user', 'switcher', 'selected', 'hideBio', 'rounded', 'bordered', 'allowZoomingAvatar'
+ ],
data () {
return {
followRequestInProgress: false,
@@ -108,6 +110,12 @@ export default {
ProgressButton
},
methods: {
+ showReblogs () {
+ this.$store.dispatch('showReblogs', this.user.id)
+ },
+ hideReblogs () {
+ this.$store.dispatch('hideReblogs', this.user.id)
+ },
followUser () {
const store = this.$store
this.followRequestInProgress = true
@@ -156,7 +164,10 @@ export default {
}
},
userProfileLink (user) {
- return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames)
+ return generateProfileLink(
+ user.id, user.screen_name,
+ this.$store.state.instance.restrictedNicknames
+ )
},
reportUser () {
this.$store.dispatch('openUserReportingModal', this.user.id)