mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
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:
@@ -5,7 +5,7 @@ div
|
|||||||
.profile-actions
|
.profile-actions
|
||||||
button.btn.btn-secondary(@click='sendMessage()')
|
button.btn.btn-secondary(@click='sendMessage()')
|
||||||
.svg-icon.message-icon(v-html="icons.message")
|
.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')
|
@click="blockUser()", tooltip-placement='right')
|
||||||
span.glyphicon.glyphicon-plus
|
span.glyphicon.glyphicon-plus
|
||||||
| {{$t('block')}}
|
| {{$t('block')}}
|
||||||
|
|||||||
Reference in New Issue
Block a user