hide overflow menu for same-user profile

Fixes #130
This commit is contained in:
Nolan Lawson 2018-04-15 15:05:32 -07:00
parent e23aa97cf2
commit 3f8b5af79d
2 changed files with 12 additions and 9 deletions

View File

@ -23,14 +23,17 @@
{{numFollowersDisplay}}
</span>
</div>
<div class="account-profile-more-options">
<IconButton
label="More options"
href="#fa-bars"
muted="true"
on:click="onMoreOptionsClick()"
/>
</div>
<!-- TODO: re-enable this when we support profile editing -->
{{#if account && verifyCredentials && account.id !== verifyCredentials.id}}
<div class="account-profile-more-options">
<IconButton
label="More options"
href="#fa-bars"
muted="true"
on:click="onMoreOptionsClick()"
/>
</div>
{{/if}}
</div>
<style>
.account-profile-details {

View File

@ -62,7 +62,7 @@
}
return relationship && relationship.following
},
blocking: (relationship) => relationship.blocking,
blocking: (relationship) => relationship && relationship.blocking,
followRequested: (relationship, account) => {
return relationship && relationship.requested && account && account.locked
},