hide the Block button in the user's own profile screen (#9098)

This prevents a user from accidentally blocking themself from sending PMs.
This commit is contained in:
Alys
2017-09-30 06:56:54 +10:00
committed by Sabe Jones
parent 7ee49a43f2
commit 1d8c126687

View File

@@ -5,7 +5,7 @@ div
.profile-actions
button.btn.btn-secondary(@click='sendMessage()')
.svg-icon.message-icon(v-html="icons.message")
button.btn.btn-secondary(v-if='userLoggedIn.inbox.blocks.indexOf(user._id) === -1', :tooltip="$t('unblock')",
button.btn.btn-secondary(v-if='user._id !== this.userLoggedIn._id && userLoggedIn.inbox.blocks.indexOf(user._id) === -1', :tooltip="$t('unblock')",
@click="blockUser()", tooltip-placement='right')
span.glyphicon.glyphicon-plus
| {{$t('block')}}