Merge pull request #8306 from annando/contact-unfollow-delete
Don't show "delete contact" when there is a follow or unfollow option
This commit is contained in:
commit
858b63656e
|
@ -1278,6 +1278,10 @@ class Contact
|
|||
}
|
||||
}
|
||||
|
||||
if (!empty($follow_link) || !empty($unfollow_link)) {
|
||||
$contact_drop_link = '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Menu array:
|
||||
* "name" => [ "Label", "link", (bool)Should the link opened in a new tab? ]
|
||||
|
|
|
@ -73,6 +73,11 @@
|
|||
<i class="fa fa-user-plus" aria-hidden="true"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{if $contact.photo_menu.unfollow}}
|
||||
<a class="contact-action-link btn-link" href="{{$contact.photo_menu.unfollow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.unfollow.0}}">
|
||||
<i class="fa fa-user-times" aria-hidden="true"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{if $contact.photo_menu.hide}}
|
||||
<a class="contact-action-link btn-link" href="{{$contact.photo_menu.hide.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.hide.0}}">
|
||||
<i class="fa fa-times" aria-hidden="true"></i>
|
||||
|
|
Loading…
Reference in New Issue
Block a user