|
41 | 41 | <hc-follow-buttons v-if="user" |
42 | 42 | :showButtons="!isOwner" |
43 | 43 | :entity="user"> |
44 | | - <hc-block-button v-if="user && !isOwner" :foreignEntity="user" :confirmation="confirmUnfollow"/> |
45 | 44 | </hc-follow-buttons> |
46 | 45 |
|
47 | 46 | <div v-if="false" class="hc-shortcuts level under-construction"> |
|
143 | 142 | import {mapGetters} from 'vuex' |
144 | 143 | import FollowerItem from '~/components/Profile/FollowerItem/FollowerItem.vue' |
145 | 144 | import FollowButtons from '~/components/Global/Elements/Follow/FollowButtons.vue' |
146 | | - import BlockButton from '~/components/Global/Elements/BlockButton/BlockButton' |
147 | 145 | import Map from '~/components/Map/Map.vue' |
148 | 146 | import Timeline from '~/components/layout/Timeline' |
149 | 147 | import Badges from '~/components/Profile/Badges/Badges' |
|
154 | 152 | components: { |
155 | 153 | 'hc-follower-item': FollowerItem, |
156 | 154 | 'hc-follow-buttons': FollowButtons, |
157 | | - 'hc-block-button': BlockButton, |
158 | 155 | 'hc-profile-badges': Badges, |
159 | 156 | 'hc-map': Map, |
160 | 157 | 'hc-timeline': Timeline |
|
266 | 263 | } |
267 | 264 | }, |
268 | 265 | methods: { |
269 | | - confirmUnfollow(next){ |
270 | | - const message = this.$t('component.blacklist.confirmUnfollowMessage', { |
271 | | - name: this.user.name || this.$t('component.contribution.creatorUnknown') |
272 | | - }) |
273 | | - this.$dialog.confirm({ |
274 | | - title: this.$t('component.blacklist.confirmUnfollowTitle'), |
275 | | - message, |
276 | | - confirmText: this.$t('button.yes'), |
277 | | - cancelText: this.$t('button.cancel'), |
278 | | - type: 'is-danger', |
279 | | - hasIcon: true, |
280 | | - onConfirm: () => { next() } |
281 | | - }) |
282 | | - }, |
283 | 266 | async onCoverUploadCompleted (value) { |
284 | 267 | this.form.coverImg = value |
285 | 268 | const user = await this.$store.dispatch('auth/patch', { |
|
0 commit comments